| commit | dff871c14642097907ae3207e67e27a2f62e853f | [log] [tgz] |
|---|---|---|
| author | Nate Bosch <nbosch1@gmail.com> | Mon Jun 26 10:40:47 2017 -0700 |
| committer | GitHub <noreply@github.com> | Mon Jun 26 10:40:47 2017 -0700 |
| tree | fbb264e8ce77dbd7a05704d0d2cf497df3a9baac | |
| parent | 03eed275933d1e7b79bc3901650eeb87f0ba7875 [diff] |
Fix throttle broadcast bug (dart-lang/stream_transform#23)
- Switch to `fromHandlers` utility.
- Add a test which fails with the old implementation.
- Add an extra `await new Future(() {})` in the test for handling the
Stream done event. The new StreamTransformer is not sync like this old
one - this behavior is still correct.
- Remove extra `handleDone` which matches the default behavior.