Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement request: Futures.waitForAny() and Futures.waitForAll() #5396

Closed
DartBot opened this issue Sep 24, 2012 · 3 comments
Closed

Enhancement request: Futures.waitForAny() and Futures.waitForAll() #5396

DartBot opened this issue Sep 24, 2012 · 3 comments
Labels
area-library core-l library-async P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Sep 24, 2012

This issue was originally filed by sigma.m...@gmail.com


Scenario


        In putting together a response to a request, we dispatch a query to multiple database replicas (servers). As soon as we receive the data from any of them, we can continue with framing our response. Here, we are evidently interested in any one of them finishing, not all.

Request


        Rename Futures.wait(List&lt;Future&gt; l)' toFutures.waitForAll(List<Future> l)', and introduce a new `Futures.waitForAny(List<Future> l)' to address the above case (and similar ones).

@iposva-google
Copy link
Contributor

Added Area-Library, Triaged labels.

@lrhn
Copy link
Member

lrhn commented Apr 18, 2013

Removed Type-Defect label.
Added Type-Enhancement, Library-Async labels.

@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Feb 29, 2016
@lrhn lrhn added the core-m label Aug 11, 2017
@floitschG floitschG added core-l and removed core-m labels Aug 29, 2017
@bkonyi
Copy link
Contributor

bkonyi commented Jun 18, 2018

Fairly certain this is handled by Future.any (see here). Closing for now.

@bkonyi bkonyi closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-library core-l library-async P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants