This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-25
Channels
- # aatree (10)
- # beginners (59)
- # boot (314)
- # braveandtrue (4)
- # cider (50)
- # cljs-dev (12)
- # cljsrn (6)
- # clojure (206)
- # clojure-austin (2)
- # clojure-gamedev (90)
- # clojure-japan (1)
- # clojure-poland (12)
- # clojure-russia (10)
- # clojure-sg (1)
- # clojurescript (86)
- # core-async (2)
- # core-matrix (3)
- # cursive (40)
- # datomic (2)
- # dirac (13)
- # editors (25)
- # emacs (7)
- # hoplon (2)
- # immutant (10)
- # jobs (24)
- # jobs-discuss (1)
- # ldnclj (8)
- # lein-figwheel (19)
- # leiningen (1)
- # mount (7)
- # off-topic (34)
- # om (147)
- # onyx (11)
- # parinfer (151)
- # pedestal (2)
- # re-frame (31)
- # reagent (13)
- # ring-swagger (7)
- # spacemacs (1)
- # yada (11)
@mccraigmccraig: i found a solution that increases the number of processes calling asynchronous functions, although I'm not really sure I totally understand manifolds execution models
(defn pipeline-async
[n f in]
(let [out (s/stream n)]
(s/connect (s/map f in) out)
(s/realize-each out)))
what I don't understand is, how does manifold.deferred/future turn a blocking IO operation into something where a callback can be attached?
> Wherever possible, use manifold.deferred/deferred instead of promise, and manifold.deferred/future instead of future. They will behave identically to their Clojure counterparts (deliver can be used on a Manifold deferred, for instance), but allow for callbacks to be registered, so no additional threads are required.
You could have reasonably expected yada to return byte[] to aleph. Until now, it hasn't! Thanks to Andy Dwelly for spotting this - not quite sure why I'd never thought to do so before now
hey @malcolmsparks here's another PR for coercing keyword values from a json body: https://github.com/juxt/yada/pull/67