Hi Stu,

On 16 Jul., 19:54, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> Hi Stefan,
>
> The behavior you are seeing is not a problem, and understanding why may be 
> helpful to using agents correctly.
>
> The thread that sends to an agent has no guarantee that it will (or will not) 
> see the result of its action a tiny bit later, when the repl prints the 
> stringified version of the agent.

yeah, after posting this I went over to core_print.clj and took a
look.  I was also thinking about proposing that the REPL should await
(or better await-for), but since the REPL can't know when the agent
will finish, it wouldn't be good either.  I can't think of a reliable
solution for this.

The same thing happens (of course) with the output of the current
value, not just the error-state.


I think the fact that having a thread-pool or not made a difference
got me on the wrong track in the first place.

Best regards,
Stefan

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to