Created
December 3, 2015 15:43
-
-
Save sarcilav/a5582ca45f735bc16a0b 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
(let [ex-agent (agent {:user_id 1 :user_email "[email protected]"}) | |
fn-agent (fn [{id :user_id email :user_email}] | |
(println "staring super heavy IO task") | |
(Thread/sleep 10000) | |
(println "email send to" email))] | |
(println "sending task to agent") | |
(send-off ex-agent fn-agent) | |
(println "end let")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment