This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-04
Channels
- # announcements (7)
- # babashka (26)
- # babashka-sci-dev (19)
- # beginners (66)
- # calva (4)
- # clj-kondo (55)
- # cljs-dev (173)
- # cljsrn (17)
- # clojure (86)
- # clojure-art (3)
- # clojure-australia (1)
- # clojure-europe (24)
- # clojure-india (1)
- # clojure-nl (3)
- # clojure-uk (6)
- # clojured (5)
- # clojurescript (39)
- # cursive (8)
- # data-oriented-programming (20)
- # datomic (9)
- # emacs (10)
- # events (1)
- # figwheel-main (16)
- # fulcro (33)
- # gratitude (1)
- # helix (2)
- # hugsql (2)
- # jobs (2)
- # kaocha (4)
- # leiningen (5)
- # lsp (110)
- # malli (1)
- # missionary (17)
- # observability (3)
- # re-frame (10)
- # reagent (1)
- # reitit (7)
- # rewrite-clj (3)
- # shadow-cljs (63)
- # sql (19)
- # tools-build (74)
- # tools-deps (32)
- # transit (1)
- # xtdb (5)
Would missionary be a good fit for a reactive streams library (rxjs) replacement for Clojurescript UIs? I’ve yet to fully grok its usage, but its simpler primitives are appealing.
definitely ! missionary aims to improve over rx, with a better syntax and support for continuous time
the majority of the examples use the m/?
so it’ been a bit bumpy trying to follow the guides in cljs
also curious what to the abbreviations stand for? i tried looking at code docs but couldn’t pick it out sp
ap
etc
in cljs, use the task as a function with two callbacks, or pass it to the promise constructor
so does the hello_flow tutorial not apply to cljs? i’ve done the task one, wondering what other ones to do
so i figured this would return the value
(await-promise (promise! (m/reduce + (m/seed (range 10)))))
but it seems to be returning another missionary fn to call
they are copied from the docs
(defn promise! "Runs given task and returns a promise completing with the result of this task"
[t]
(js/Promise. t))
(defn await-promise "Returns a task completing with the result of given promise"
[p]
(let [v (m/dfv)]
(.then p
#(v (fn [] %))
#(v (fn [] (throw %))))
(m/absolve v)))