Skip to content

Use Stream.multi instead of forwardStream's inner Controller#601

Open
frankpepermans wants to merge 3 commits intomasterfrom
stream_multi
Open

Use Stream.multi instead of forwardStream's inner Controller#601
frankpepermans wants to merge 3 commits intomasterfrom
stream_multi

Conversation

@frankpepermans
Copy link
Copy Markdown
Member

Fixes the issue where we rely on specific createForwardingStream's, thus respecting the behavior of custom StreamControllers, see: #587

@frankpepermans frankpepermans requested a review from hoc081098 June 14, 2021 09:49
@frankpepermans
Copy link
Copy Markdown
Member Author

Some tests have been skipped, they all use Timers and were flaky by design.
I'm gonna look for a better way to test them.

controller.onCancel = () {
final onCancelConnectedFuture =
_connectedSink.onCancel(_compositeController);
final onCancelSubscriptionFuture = _subscription?.cancel();
Copy link
Copy Markdown
Collaborator

@hoc081098 hoc081098 Jun 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we cancel subscription when canceling a MultiStreamController?

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