commit | a6034c9bb6d91520f19be65f0daffccb7f1838c1 | [log] [tgz] |
---|---|---|
author | Matan Lurey <matanlurey@users.noreply.github.com> | Thu Jan 05 19:29:58 2017 -0500 |
committer | Natalie Weizenbaum <nweiz@google.com> | Thu Jan 05 16:29:58 2017 -0800 |
tree | 1c1bda6149739d60a94db274fc9c953a6ba21f0d | |
parent | e52a3bebb351cdea30b71c81eb73ada223b84d7a [diff] |
Add AsyncCache (#12)
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.