Re: Future statics

On Fri, Apr 5, 2013 at 5:56 PM, Brandon Wallace
<brandon.wallace@yahoo.com> wrote:
> The example code in 4.1 references "Future.when()" but I don't see any
> definition for this method.

I forgot to rename it to Future.every.


> For Future.every() and Future.some(), I did not see anything requiring the
> order of the values array supplied to the callbacks should match the order
> of the futures supplied.  These methods will be harder to use without this
> requirement.

Clarified.


> A fourth static would be nice that behaves similar to Task.WhenAll() in the
> .Net Framework (1)
>
> Future.???() - Almost like 'every' except that it waits for all futures to
> complete and if any were rejected then rejects the future with an array of
> the rejection values.
>
> (1) http://msdn.microsoft.com/en-us/library/hh194874.aspx

If we continue the Array analogy this would be Future.map() I think.


--
http://annevankesteren.nl/

Received on Friday, 5 April 2013 17:15:42 UTC