This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-17
Channels
- # announcements (1)
- # babashka (6)
- # beginners (5)
- # boot (18)
- # calva (4)
- # clj-kondo (39)
- # cljdoc (1)
- # cljs-dev (1)
- # clojure (24)
- # clojure-italy (5)
- # clojure-spec (5)
- # clojurescript (20)
- # cursive (10)
- # data-science (1)
- # datomic (1)
- # emacs (1)
- # fulcro (1)
- # kaocha (5)
- # rewrite-clj (18)
- # shadow-cljs (11)
- # spacemacs (35)
- # sql (11)
- # vim (13)
Is there a way to trigger an end to an infinite go-loop
in Clojurescript?
I'm looking at this example but I want to be able to stop the loop too. Right now, I'm thinking I can do this via a "global" atom
(or channel) but is this the best way?:
https://clojuredocs.org/clojure.core.async/go-loop#example-542c8833e4b05f4d257a297a
I'm interacting with an API that provides data via a REST endpoint and I need to frequently update my frontend.
I believe a common pattern is to pass in a channel that you use to signal a shutdown with alts
Thanks Keith.. yes, I wanted to get to know the canonical way to manage this... Channels it is!