commit | 1579e908f2e78b59a8c2732d88c6fea82689933c | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Tue Sep 27 12:19:43 2016 +0200 |
committer | Lasse R.H. Nielsen <lrn@google.com> | Tue Sep 27 12:19:43 2016 +0200 |
tree | 2371de267515788f54f5069f950397c18c2bd691 | |
parent | 7db0ec0b31b7d63c958dd3488ac99b46c2d3bead [diff] |
Don't expect a `null` return from subscription.cancel. R=floitsch@google.com Review URL: https://codereview.chromium.org//2369953004 .
Contains utility classes in the style of dart:async
to work with asynchronous computations.
The StreamZip
class can combine several streams of events into a single stream of tuples of events.
The package introduces a Result
class that can hold either a value or an error. It allows capturing an asynchronous computation which can give either a value or an error, into an asynchronous computation that always gives a Result
value, where errors can be treated as data. It also allows releasing the Result
back into an asynchronous computation.