Created
June 12, 2017 08:53
-
-
Save 0atman/e44d80a15440bdb1c0c22331854e7949 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
(defn return_after_5_secs [message] | |
(do (Thread/sleep 5000) message)) | |
future = (future return_after_5_secs “hello”) | |
(realized? future) | |
(Thread/sleep 5000) | |
(realized? future) | |
(println @future) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment