This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-31
Channels
- # aws (2)
- # beginners (101)
- # cider (8)
- # clara (8)
- # cljs-dev (3)
- # cljsrn (17)
- # clojars (2)
- # clojure (67)
- # clojure-austin (2)
- # clojure-finland (1)
- # clojure-france (5)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-russia (2)
- # clojure-serbia (1)
- # clojure-spec (72)
- # clojure-uk (112)
- # clojurescript (92)
- # core-async (74)
- # core-typed (2)
- # cursive (8)
- # datomic (2)
- # duct (5)
- # emacs (35)
- # events (11)
- # fulcro (32)
- # instaparse (9)
- # jobs (1)
- # luminus (1)
- # lumo (3)
- # off-topic (118)
- # om (2)
- # onyx (10)
- # pedestal (5)
- # re-frame (21)
- # reagent (48)
- # reitit (40)
- # ring (12)
- # shadow-cljs (113)
- # spacemacs (21)
- # tools-deps (47)
@clark Thank you for your offer to help. I think I'm figuring it out, but slowly đ
let me know if there's a better way to present this that doesn't create a neverending loop
are go
blocks not lazy?
should I use put!
s instead?
put!
doesn't seem to cut it
Sorry, I used def
not defn
đ
woah, my mind is exploding over here :shocked_face_with_exploding_head: If anyone can help me wrap my head around why put!
'ing to a chan
when it's in motion seems to restart the process, I plan on publishing this stuff to the intertubes for posterity: https://github.com/loganpowell/cljs-guides/blob/master/src/core-async/guide-core-async.md#control-flow-with-alts
will correct, thanks!
i think itâs important to think about these operations in terms of parking vs blocking. go
being a macro for wrapping parking operations. threads, which all code is executed in, are the context for blocking operations, so nothing special is needed to use blocking operations.
so, I can clarify that "parking" enables ClojureScript users to use "blocking" syntax?
that's what I thought
right
can you elaborate on "no true asynchrony"?
gotcha
right, is that why my put!
s are restarting the process?
thank you for that, yes, I'm - slightly - in tune with the difference there...
In the article I'm working on, THere's a section that shows the phenomenon https://github.com/loganpowell/cljs-guides/blob/master/src/core-async/guide-core-async.md#control-flow-with-alts
the two different logs
I'm trying to put!
to a running chan
and it like quadruples its output size
sec...
No worries! thank you for reaching out to help: https://gist.github.com/loganpowell/f2ca460abb42b3daf85ddec56a294192
yessir
so, they're not "waking up" again, but they're just loaded in the port?
no, but if if just eval the (timeout-chan test-chan)
it logs the same as the (let.. (go..
I'm trying to show how to interact with the channel from the "outside"
say from an api
the test-chan
in the example
I'm using the timeout inside of the timeout-chan
as an alts!
control trigger
to stop the go-loop
please đ đ
ok...
I think it might also help others to see these idiosyncrasies
can you explain what you mean by sometimes it's parked on the call to (<! port)
?
let me think about what your asking...