Oh!  I see, you want promises with callbacks (which you want to be futures).
Once a promise is delivered, you want to kick off a future (in Clojure, 
futures consume a thread from the thread pool to do their work).

It's been discussed before: 
https://groups.google.com/forum/?fromgroups=#!topic/clojure-dev/7BKQi9nWwAw

You may find a more elegant solution in the upcoming async work: 
https://github.com/clojure/core.async

As previously stated you can use some mix of promise, delay, future, map, 
pmap, and reducers (much as you have already done).

If you're just looking for a completely async solution right now, I'd 
suggest lamina: https://github.com/ztellman/lamina

Paul

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to