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

StreamController.addFuture #16187

Open
blois opened this issue Jan 17, 2014 · 2 comments
Open

StreamController.addFuture #16187

blois opened this issue Jan 17, 2014 · 2 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. core-n library-async type-enhancement A request for a change that isn't a bug

Comments

@blois
Copy link
Contributor

blois commented Jan 17, 2014

Would be nice if StreamController had an addFuture method which added the result of the future once the future completed, or an error if the future errors out. Folks don't always remember to handle the error case.

In addition, it would be great if StreamController had a constructor from a list of Futures which essentially did the same thing.

@lrhn
Copy link
Member

lrhn commented Jan 18, 2014

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

@lrhn
Copy link
Member

lrhn commented Jan 19, 2014

We already have the StreamController.addStream, so it should be possible to do something similar with a future - it'll be impossible to add anything else while the future is waiting.

For the constructor, it sounds more like a Stream constuctor, liek Stream.fromFutures. There are two alternatives (values in the order of the list, or in the order they comlpete).

@blois blois added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-async labels Jan 19, 2014
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed priority-unassigned labels Feb 29, 2016
@lrhn lrhn added the core-m label Aug 11, 2017
@floitschG floitschG added core-n and removed core-m labels Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. core-n library-async type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants