jwiegley / emacs-async

Simple library for asynchronous processing in Emacs
GNU General Public License v3.0
838 stars 68 forks source link

Combine multiple futures in one handler #29

Closed edvorg closed 4 years ago

edvorg commented 10 years ago

Hello.

How about implementing some functionality, for waiting for completion of n > 1 processes, and passing their result to one handler lambda, accepting n parameters for each process result?

jwiegley commented 10 years ago

You mean something like a map/reduce-y form of concurrency?

edvorg commented 10 years ago

Yes, exactly. In my case there are two concurrent processes returning some result and I want start completion handler after both are completed.

jwiegley commented 10 years ago

Sure, this is completely in scope. In Haskell we have exactly this thing, called mapConcurrently.

LaurenceWarne commented 8 months ago

I was looking for this exact feature, has this been implemented?