Hi there,

I've been playing around with a few different approaches to writing
concurrent programs in clojure, and I was surprised that a trivial use
of pmap results in a RejectedExecutionException:

(pmap #(* % %) (range 0 10))

This exception tends to happen in java when there is a thread pool
executor which uses a bounded blocking queue - when the queue is full,
instead of blocking insertions to the queue, it throws this exception
instead. I haven't dug into the actual clojure agent behaviors to see
what is happening at a lower level, but is anyone else seeing this?

(Please note that if I use the alternate implementation of pmap on the
"Refs and Transactions" page of clojure.org, it doesn't throw any
exceptions.)
--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to