Re: Inadequate behavior of agent await?

2020-06-13 Thread Matching Socks
await takes many steps and is not synchronized, so it would be messy to guarantee how it relates to other threads. -- 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

Re: Inadequate behavior of agent await?

2020-06-11 Thread Ernesto Garcia
On Thursday, June 11, 2020 at 6:20:19 AM UTC+2, Sean Corfield wrote: > > If you provide an error handler on the agent -- or just specify the error > mode as :continue -- it does not hang. > Thanks for pointing out those solutions. > That makes me think that what you're seeing is "expected

Re: Inadequate behavior of agent await?

2020-06-11 Thread Ernesto Garcia
Hey, thanks for the suggestions. ClojureVerse seems to be the most active forum? On Thursday, June 11, 2020 at 5:52:29 AM UTC+2, Sam Griffith wrote: > > You may want to ask this on ClojureVerse or on the official Q/A site at > https://ask.clojure.org/index.php/ -- You received this message

Re: Inadequate behavior of agent await?

2020-06-10 Thread Sean Corfield
If you provide an error handler on the agent -- or just specify the error mode as :continue -- it does not hang. That makes me think that what you're seeing is "expected behavior" although it does seem a bit strange...? On Wed, Jun 10, 2020 at 1:49 AM Ernesto Garcia wrote: > I have discovered

Inadequate behavior of agent await?

2020-06-10 Thread Sam Griffith
You may want to ask this on ClojureVerse or on the official Q/A site at https://ask.clojure.org/index.php/ -- 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

Inadequate behavior of agent await?

2020-06-10 Thread Ernesto Garcia
I have discovered that, in the case of an agent action exception, the behavior of agent await depends on timing: - If your await happens to execute after the action is completed, it will happily throw an exception that the agent is in a failed state. - If your await happens to execute before the