On Tue, Jan 6, 2009 at 11:07 AM, wubbie <[email protected]> wrote:
>
> But after I shutdown the agent,
> I created a new agent with the same name and also defined the
> function.
> So shutdown on earlier agent should not matter?

I think he means that once you shut it down you can't use send or
send-off for any agent for the rest of run of the application ... or
the rest of the REPL session.

> -Sun
>
> On Jan 6, 11:46 am, Chouser <[email protected]> wrote:
>> On Tue, Jan 6, 2009 at 11:18 AM, Mark Volkmann
>>
>> <[email protected]> wrote:
>>
>> > On Tue, Jan 6, 2009 at 10:00 AM, wubbie <[email protected]> wrote:
>> >> user=> (shutdown-agents)
>> >> nil
>>
>> [snip]
>>
>> >> user=> (send-off my-agent sleep-and-multiply 7 1500)
>> >> java.util.concurrent.RejectedExecutionException (NO_SOURCE_FILE:0)
>>
>> > I don't know why you're getting that error.
>>
>> The error is because you shut down the agent pools.  Don't do that
>> until you're done sending actions to agents!
>>
>> --Chouser
> >
>



-- 
R. Mark Volkmann
Object Computing, Inc.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to