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

Added .asStreamAwaited() function for iterables of futures #54

Merged
merged 5 commits into from
Apr 26, 2020

Conversation

shinayser
Copy link
Contributor

@shinayser shinayser commented Feb 5, 2020

My last request did not contained a case for Iterables of Futures.
I am adding it now with the name .asStreamAwaited() wich is a shortcut for calling Stream.fromFutures.

It's different from the latest one beacause this one awaits for the future completions and emits them in the order of completion.

test/iterable_test.dart Outdated Show resolved Hide resolved
@shinayser
Copy link
Contributor Author

shinayser commented Feb 6, 2020

I am trying to improve the test, but there is something really weird going on... I tried many different ways to test it but none of them are working.
I even got myself in this bizarre situation:

Screenshot_1
WTF?

Definetly there is some kind of bug on the testing library.

There is something else I can do to improve that?

@shinayser
Copy link
Contributor Author

I DID IT!
I had to use StreamQueue from the async package. Not the test works properly!

@shinayser shinayser requested a review from simc February 7, 2020 20:25
@passsy passsy merged commit 3a6c7d8 into simc:master Apr 26, 2020
@shinayser shinayser deleted the adding-iterable-stream branch May 5, 2020 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants