commit | 3656b103d98c4aca0d01fc35d409892c8c1c8247 | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Tue Jul 19 14:52:40 2016 -0700 |
committer | Natalie Weizenbaum <nweiz@google.com> | Tue Jul 19 14:52:40 2016 -0700 |
tree | e067bd09747a429d8e144694ab59242d673985a7 | |
parent | a4e67957e6807916526a76120852a69f28fc2ac6 [diff] |
Fix Dart 1.17 strong-mode warnings. R=kevmoo@google.com Review URL: https://codereview.chromium.org//2161283002 .
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.