Hey all,
I've cooked up this example code to demonstrate a point:
(send-off
(agent nil)
(fn [_]
(send-off
(agent nil)
(fn [_]
(println "Hey!")))
(Thread/sleep 4000))) ; "Hey!" isn't printed for 4 seconds (when the outer
agent finishes).
Which is that actions sent to an agent from another agent won't be started
until the first agent returns from its current action.
Does anyone have insight as to the reasoning here? Is it a bug? If it's
intended behavior is there something I can do to circumvent it?
Dan
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en