> My understanding of send and send-off, is that with send-off a new > thread outside the thread pool is used to run the agent action.
Actually a different kind of thread pool is used for send-off. It is a cached thread pool obtained from Executors.newCachedThreadPool(), while send uses a thread pool obtained from Executors.newFixedThreadPool(). With send-off, your action may have to wait for thread creation (but not if a thread is available in the cache), but will not have to wait for a thread to complete another action. With send, you don't wait for thread creation, but you may have to wait for a thread to be free (if all threads in the fixed pool are busy with other actions). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---