Created
June 26, 2020 09:31
-
-
Save mping-exo/7da442e76f6302a1422729ee52487ef4 to your computer and use it in GitHub Desktop.
ablauf deferred
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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