Refactor forwardStream: uses Stream.multi#605
Merged
hoc081098 merged 13 commits intoReactiveX:masterfrom Jul 21, 2021
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #605 +/- ##
==========================================
- Coverage 93.39% 93.22% -0.17%
==========================================
Files 70 71 +1
Lines 2256 2230 -26
==========================================
- Hits 2107 2079 -28
- Misses 149 151 +2 |
Collaborator
Author
|
A special case cannot be handled :(( test('description', () async{
final a = BehaviorSubject.seeded('b');
final bug = a.doOnData((v) {});
await bug.listen(null).cancel();
expect(await bug.first, 'b'); // cannot complete
}); |
Member
|
I also tried converting to Stream.multi, but where my attempt fails, so does this one, take this test for example: test('issue/587', () async {
final source = BehaviorSubject.seeded('source');
final switched =
source.switchMap((value) => BehaviorSubject.seeded('switched'));
var i = 0;
switched.listen((_) => i++);
expect(await switched.first, 'switched');
expect(i, 1);
expect(await switched.first, 'switched');
expect(i, 1);
}); |
* failed * sink per stream
Collaborator
Author
I have just skipped some tests:
|
frankpepermans
approved these changes
Jul 17, 2021
Member
frankpepermans
left a comment
There was a problem hiding this comment.
Sorry for the delay again!
Awesome job yet again :)
And great to hear the deadlocks are solved!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #596 and #601