Skip to content

Instantly share code, notes, and snippets.

@danidiaz
Created May 3, 2013 15:43
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 danidiaz/5510085 to your computer and use it in GitHub Desktop.
Save danidiaz/5510085 to your computer and use it in GitHub Desktop.
Explictily invoking Java Threads on Clojure.
(dotimes [i 10] (.start (new Thread (fn [] (println i)))))
(dotimes [i 10] (.start (Thread. (fn [] (println i)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment