Created
February 27, 2016 23:58
-
-
Save colinhicks/4a4c237ab789b8ded5f7 to your computer and use it in GitHub Desktop.
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
(defn then [promise-ch f] | |
(let [out (async/promise-chan)] | |
(async/pipeline-async 1 out #(async/pipe (f %1) %2) promise-ch) | |
out)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment