Skip to content

Instantly share code, notes, and snippets.

@MayDaniel
Created November 21, 2010 15:58
Show Gist options
  • Save MayDaniel/708837 to your computer and use it in GitHub Desktop.
Save MayDaniel/708837 to your computer and use it in GitHub Desktop.
(future-call (bound-fn [] (println 1)))
;;;
(alter-var-root (var *out*) (constantly *out*))
(do (future (println 1))
(future (println 2))
(doto (Thread. (fn [] (println 1)))
(.start)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment