[Haskell-cafe] Re: do nmergeIO or mergeIO preserve order?
haskell at list.mightyreason.com
Wed Mar 11 05:25:08 EDT 2009
Anatoly Yakovenko wrote:
> do nmergeIO or mergeIO preserve order? or not preserve order?
If you have a list of operations "[IO a]" then the future package at
can do this. It's 'forkPromises' function returns a "Chan a" which can be used
to get the non-order preserving results (actually "Either SomeExcption a"). If
you are feeling lucky you can use "getChanContents" and "filter" to get a lazy
"[a]" which is the results as they are completed.
More information about the Haskell-Cafe