| commit | 45f181a632e2c2976e07a01fa466618a959d22bf | [log] [tgz] |
|---|---|---|
| author | Nate Bosch <nbosch@google.com> | Fri May 03 11:24:49 2019 -0700 |
| committer | GitHub <noreply@github.com> | Fri May 03 11:24:49 2019 -0700 |
| tree | f555548655d69a7c84ee5d89262d34746b637248 | |
| parent | 8503dd7a1bcd82894bb1f63c32e5f81c7498089c [diff] |
Add asyncMapSample transform (dart-lang/stream_transform#79) Like `asyncMapBuffer` but drops instead of collecting previous events. - Refactor `_Buffer` class into `Aggregate` which takes a function to aggregate values instead of only collecting them to a List. This will not be published. - Add `asyncMapSample` which is effectively an identical implementation to `asyncMapBuffer` except it chooses a different aggregation function.