Use sync forwarders in `fromHandlers` (dart-lang/stream_transform#27)
Towards dart-lang/stream_transform#24
- Switch to sync StreamControllers
- Set onPause, onResume, and onCancel in the onListen callback
- Don't wrap pause and resume callbacks - they are guaranteed to not be
called outside of the subscription lifetime
- Only cancel the subscription when the values stream is not done - in
stream closure path the onCancel is called but does not need to return
a future.
- Drop the now unnecessary `await new Future(() {})` from tests.
5 files changed
tree: f13153855bd544935bb4c25fed310840a2795c44
- pkgs/