Skip to content

Instantly share code, notes, and snippets.

@kindlychung
Created May 7, 2015 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kindlychung/7551ac67fe767c769d79 to your computer and use it in GitHub Desktop.
Save kindlychung/7551ac67fe767c769d79 to your computer and use it in GitHub Desktop.
(defmacro futures
[n & exprs]
(vec (for [_ (range n)
expr exprs]
`(future ~expr))))
(defmacro wait-futures
[& args]
`(doseq [f# (futures ~@args)]
@f#))
@kindlychung
Copy link
Author

what is @ for on line 11?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment