This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-13
Channels
- # announcements (14)
- # babashka (13)
- # beginners (25)
- # biff (7)
- # calva (36)
- # clj-kondo (22)
- # clojure (31)
- # clojure-austin (1)
- # clojure-europe (12)
- # clojure-losangeles (4)
- # clojure-nl (1)
- # clojure-norway (61)
- # clojure-uk (4)
- # clojurescript (3)
- # datomic (24)
- # events (1)
- # humbleui (9)
- # leiningen (9)
- # lsp (30)
- # malli (3)
- # missionary (15)
- # off-topic (5)
- # re-frame (4)
- # reitit (7)
- # releases (2)
- # remote-jobs (4)
- # rewrite-clj (11)
- # ring-swagger (2)
- # sci (6)
- # xtdb (2)
- # yamlscript (3)
hi o/ I get it that async/<!!
doesn't exist in cljs because we're technically running a single thread, but what's a good replacement for a REPL use case when I just want to read a single thing from a channel? (something like await read(chan)
in the web inspector's console, basically). I can run poll!
a few times, but when my api is async and returns a new chan on every call it becomes a bit inconvenient to use.
I'm not a user of core.async
with CLJS, but I'd use take!
with a callback that tap>
s the result.
TIL tap>
is a thing. That seems perfect, thanks!