Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ablauf deferred
(d/on-realized (d/chain (d/success-deferred 1)
#(println "ok" %))
(fn ok [v] (println "Realized" v))
(fn fail [e] (println "fail " e)))
;; ok 1
;; realized nil
(d/on-realized (d/chain (d/error-deferred 1)
#(println "ok" %))
(fn ok [v] (println "Realized" v))
(fn fail [e] (println "fail " e)))
;; fail 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment