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

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

frankpepermans
Copy link
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
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
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