This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-12
Channels
- # beginners (34)
- # boot (210)
- # cider (16)
- # cljs-dev (65)
- # cljsrn (3)
- # clojars (2)
- # clojure (107)
- # clojure-austin (8)
- # clojure-berlin (10)
- # clojure-brasil (1)
- # clojure-canada (1)
- # clojure-dev (1)
- # clojure-fr (1)
- # clojure-italy (22)
- # clojure-new-zealand (12)
- # clojure-nl (28)
- # clojure-russia (13)
- # clojure-spec (25)
- # clojure-uk (10)
- # clojurescript (109)
- # cursive (18)
- # datomic (44)
- # defnpodcast (1)
- # dirac (4)
- # emacs (2)
- # funcool (1)
- # hoplon (16)
- # jobs (14)
- # lambdaisland (23)
- # leiningen (2)
- # luminus (3)
- # off-topic (7)
- # om (58)
- # onyx (16)
- # proton (6)
- # re-frame (42)
- # reagent (55)
- # ring-swagger (5)
- # untangled (47)
- # vim (9)
Is there a way to get nested observable pushes to evaluate in chronological order rather than their current ordering (by stack frame?). For example, I want @state
to be 2
, not 1
, without changing the order of the code below:
(require '[beicon.core :as rx])
=> nil
(def state (atom 0))
=> #'boot.user/state
(def test-bus (rx/bus))
=> #'boot.user/test-bus
(def sub (rx/subscribe test-bus
(fn [f] (f))))
=> #'boot.user/sub
(rx/push! test-bus (fn []
(rx/push! test-bus (fn []
(reset! state 2)))
(reset! state 1)))
=> nil
@state
=> 1