Skip to content

Instantly share code, notes, and snippets.

@0atman
Created June 12, 2017 08:53
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 0atman/e44d80a15440bdb1c0c22331854e7949 to your computer and use it in GitHub Desktop.
Save 0atman/e44d80a15440bdb1c0c22331854e7949 to your computer and use it in GitHub Desktop.
(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