Re: Agents & send-off

2008-12-24 Thread Rich Hickey
On Dec 24, 2008, at 7:46 AM, MikeM wrote: > > With the addition of release-pending-sends, is it now possible to > support await in an agent action? I see that await still throws if > used in an agent action, but if a send is released, it seems > reasonable to be able to use await. I suppose awai

Re: Agents & send-off

2008-12-24 Thread MikeM
With the addition of release-pending-sends, is it now possible to support await in an agent action? I see that await still throws if used in an agent action, but if a send is released, it seems reasonable to be able to use await. I suppose await could internally do a release-pending-sends to allow

Re: Agents & send-off

2008-12-23 Thread Rich Hickey
On Dec 15, 7:29 pm, Rich Hickey wrote: > On Dec 15, 5:57 pm, Bradbev wrote: > > > I have the following scenario: > > - a server that is listening on a socket for incoming connections. > > - when the server accepts a connection it uses send-off to run a > > handler function to handle the conn

Re: Agents & send-off

2008-12-15 Thread Bradbev
On Dec 15, 4:29 pm, Rich Hickey wrote: > On Dec 15, 5:57 pm, Bradbev wrote: Thanks for the quick reply. Very helpful. Cheers, Brad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Agents & send-off

2008-12-15 Thread Rich Hickey
On Dec 15, 5:57 pm, Bradbev wrote: > I have the following scenario: > - a server that is listening on a socket for incoming connections. > - when the server accepts a connection it uses send-off to run a > handler function to handle the connection > - the handler function loops using recur

Agents & send-off

2008-12-15 Thread Bradbev
I have the following scenario: - a server that is listening on a socket for incoming connections. - when the server accepts a connection it uses send-off to run a handler function to handle the connection - the handler function loops using recur to handle packets - the handler function uses