tag | 08494d1c35c210cef3c50f5c0c7e126cdfbc6866 | |
---|---|---|
tagger | Natalie Weizenbaum <nweiz@google.com> | Mon Oct 24 12:32:44 2016 -0700 |
object | 302cafcf0a864f1db1399db75043f165081e5cbb |
Fix some strong-mode warnings.
commit | 302cafcf0a864f1db1399db75043f165081e5cbb | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Fri Oct 21 16:00:44 2016 -0700 |
committer | GitHub <noreply@github.com> | Fri Oct 21 16:00:44 2016 -0700 |
tree | 49fe9e0f108ea37cabb481a620267dd26492aa16 | |
parent | 1579e908f2e78b59a8c2732d88c6fea82689933c [diff] |
Change signature of methods overriding Future.then (#7) The signature is: Future<T>.then (<S>((T) → dynamic, {onError: Function}) → Future<S>) Use `dynamic` rather than leave off the type to future proof against --no-implicit-dynamic Constrain SDK to version which includes this signature for Future
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.