Created
November 24, 2013 05:20
-
-
Save jebberjeb/7623661 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
(ns testapp.core) | |
(def p (promise)) | |
(.start (java.lang.Thread. | |
(fn [] | |
(Thread/sleep 2000) | |
(deliver p "foozle") | |
(println "promise set")))) | |
(println @p " ...and we're done") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment