On Oct 30, 12:14 pm, "Jim Menard" <[EMAIL PROTECTED]> wrote:
> I was looking at the same code today. My question is slightly
> different. In the code
>
> (defn evaporation [x]
> (when running
> (send-off *agent* #'evaporation))
> (evaporate)
> (. Thread (sleep evap-sleep-ms))
> nil)
>
> it looks like the next request (when running (send-off...)) is sent
> immediately, the sleep happens after the evaporate and, more
> confusingly, happens after the next request is sent. Naively, it looks
> like you'd get an infinite number of send-off messages before the
> evaporate and the sleep happened.
>
> What am I misunderstanding?
Actions given to an Agent are queued, so the action created via send-
off won't execute until the current Action completes.
Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---