Sorry for my delayed reply (busy day),

Andy: Ill check Medusa, the number of threads in pmap does impose a
limit but in my case I can live with that.

Nathan: Yes the reason I wanted futures because of the blocking IO, I
don't know why I figured out that futures are lazy, this indeed makes
pmap redundant.

Sean: I could use pmap, but ill be limited in number of threads still
in my case I can live with that.

Thank you all for clearing it out, looks like I was on the right track

Ronen

On Sep 22, 8:00 am, Sean Corfield <seancorfi...@gmail.com> wrote:
> On Wed, Sep 21, 2011 at 6:06 PM, ronen <nark...@gmail.com> wrote:
> > (defn email-approved [approved]
> >  (doall (pmap deref (for [req approved] (future (email-request
> > req))))))
>
> Wouldn't the following be close enough to what you want?
>
> (defn email-approved [approved]
>   (doall (pmap email-request approved)))
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View --http://corfield.org/
> World Singles, LLC. --http://worldsingles.com/
> Railo Technologies, Inc. --http://www.getrailo.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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 are moderated - please be patient with your 
first post.
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