Re: Processing futures and promises asynchronously

2015-10-28 Thread Stuart Sierra
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

Re: Processing futures and promises asynchronously

2015-10-27 Thread Daniel Hinojosa
Amazing feedback everyone. Thank you. -- 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 unsubscrib

Re: Processing futures and promises asynchronously

2015-10-27 Thread Alejandro Gómez
Hi Daniel, Allow me to recommend a couple of libraries: - promissum (https://github.com/funcool/promissum) is a composable promise/future library for Clojure (built on top of jdk8 completable futures) - promesa (https://github.com/funcool/promesa) is a wrapper around the Bluebird JS promise librar

Re: Processing futures and promises asynchronously

2015-10-26 Thread Chris Murphy
Here are some discussions around the issue: http://stackoverflow.com/questions/31832599/future-failure-in-clojure ~ Chris On 27/10/2015 9:46 AM, 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, flat

Re: Processing futures and promises asynchronously

2015-10-26 Thread Matching Socks
See also: Zach Tellman's "Manifold" http://aleph.io/manifold/rationale.html http://aleph.io/manifold/deferreds.html -- 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 n

Re: Processing futures and promises asynchronously

2015-10-26 Thread Leonardo Borges
Hi Daniel, Since you're used to Scala futures, you might find this library easy to get started with: https://github.com/leonardoborges/imminent (A composable Futures library for Clojure) The next release will also include ClojureScript support. Cheers, Leonardo Borges www.leonardoborges.com On

Processing futures and promises asynchronously

2015-10-26 Thread Daniel Hinojosa
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 con