Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enqueue expansion
(let [saying (promise)]
(future (deliver saying (do (wait 100 "Cheerio!"))))
@(let [saying (promise)]
(future (deliver saying (do (wait 400 "Pip pip!"))))
@(let [saying (promise)]
(future (deliver saying (do (wait 200 (println "'Ello, gov'na!")))))
(println @saying)
saying)
(println @saying)
saying)
(println @saying)
saying)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment