Skip to content

Instantly share code, notes, and snippets.

@kindlychung kindlychung/future.clj Secret
Created May 7, 2015

Embed
What would you like to do?
(defmacro futures
[n & exprs]
(vec (for [_ (range n)
expr exprs]
`(future ~expr))))
(defmacro wait-futures
[& args]
`(doseq [f# (futures ~@args)]
@f#))
@kindlychung

This comment has been minimized.

Copy link
Owner Author

commented May 7, 2015

what is @ for on line 11?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.