commit | a9e26918f2fc27a762c5100faf786b4238c2f86f | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Thu Jan 12 11:29:47 2017 -0800 |
committer | GitHub <noreply@github.com> | Thu Jan 12 11:29:47 2017 -0800 |
tree | 1b53b12cc5d78a9d770fa1452df54d1c7e839cd3 | |
parent | 20562266cc594712b0b988de3d3cb0628830ab87 [diff] | |
parent | c59bae649db6b66625e8605de8be9b4d2a60ce9f [diff] |
Merge pull request #18 from dart-lang/transaction-helpers Add StreamQueue transaction helpers.
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.