This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-29
Channels
- # aatree (1)
- # admin-announcements (7)
- # announcements (3)
- # beginners (125)
- # boot (164)
- # braid-chat (8)
- # cider (26)
- # cljsrn (37)
- # clojars (3)
- # clojure (162)
- # clojure-argentina (1)
- # clojure-art (2)
- # clojure-berlin (5)
- # clojure-czech (3)
- # clojure-ireland (1)
- # clojure-miami (1)
- # clojure-norway (9)
- # clojure-russia (47)
- # clojurebridge (1)
- # clojurescript (151)
- # community-development (1)
- # conf-proposals (80)
- # core-async (15)
- # core-matrix (1)
- # cursive (66)
- # datomic (26)
- # emacs (17)
- # events (10)
- # funcool (59)
- # hoplon (43)
- # incanter (2)
- # jobs (10)
- # ldnclj (8)
- # lein-figwheel (18)
- # luminus (1)
- # off-topic (19)
- # om (144)
- # onyx (167)
- # overtone (9)
- # parinfer (12)
- # pedestal (1)
- # proton (158)
- # re-frame (139)
- # reagent (48)
- # test-check (19)
- # testing (43)
I’m using core.async on node, creating a command line app. Is there a way block node to not to quit before a certain go block finish executing?
@tap: I've never used core.async with node, but go blocks return a channel so you could possibly do a take on the go block you want to wait for
@ragge: The outer take (<!) will need to be wrapped with an another go block so it’s same thing
@tap: but there's probably a correct way to do this that someone who has used core.async on node can tell you
Maybe I should explain more. I’m making a command line script with Node. The problem is the script terminates too fast. One of my go block didn’t have a chance to execute.
Usually on jvm, I can make main thread wait with <!!
. But I don’t know the way to wait like that in clojurescript