| commit | cb14253aaa8638037d3b3f866715b443d9c07619 | [log] [tgz] |
|---|---|---|
| author | Nate Bosch <nbosch1@gmail.com> | Fri Jun 30 18:06:14 2017 -0700 |
| committer | GitHub <noreply@github.com> | Fri Jun 30 18:06:14 2017 -0700 |
| tree | 44e74b4198f95fc717c4140225126b41b86fc7c3 | |
| parent | 5b3c27cd557890725d630281f1d6e650d88f79eb [diff] |
Use sync forwarders for `switchLatest` (dart-lang/stream_transform#30)
Towards dart-lang/stream_transform#24
- Don't return a Future from `onCancel` when the values were already
done.
- Use `sync: true`
- Drop unnecessary `await new Future(() {})`s
- Set onPause, onResume, and onCancel inside onListen.