commit | 641e1954b4c915611e5ea9d9ab871748443253ff | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Tue Apr 12 13:42:13 2016 -0700 |
committer | Natalie Weizenbaum <nweiz@google.com> | Tue Apr 12 13:42:13 2016 -0700 |
tree | db2a7688fc0f565aefbee9c55966dda96ffd5460 | |
parent | 783a5f6bb3d2a11e5923fbd7fc47ec89dcc1824c [diff] |
Add typed wrapper functions to delegate classes. These mirror the methods in the the collection package, and serve a similar purpose of safely casting generic objects when the user is confident that the actual object's values are more specific than the static type. R=floitsch@google.com, lrn@google.com Review URL: https://codereview.chromium.org//1870543004 .
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.