core.async and Transducers target some of this, although in a slightly 
different way. Instead of clojure.core/future, you can use 
core.async/thread or core.async/go. Instead of flatMap, you can use a `map` 
Transducer on a channel or in a core.async/pipeline.

–S

On Monday, October 26, 2015 at 6:46:27 PM UTC-4, Daniel Hinojosa wrote:
>
> I am looking for a functional, non-blocking way to process the return of a 
> future. In the Scala world, you can use map, flatMap, and foreach to 
> process the return values of a future asynchronously.  In Clojure, 
> dereferencing blocks, so that makes it kind of rough since we have to set 
> up our constructs.  If anyone can steer me on the "Functional Clojure way" 
> to process futures and promises that would be greatly appreciated. ;)
>

-- 
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
--- 
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to