commit | cf8815ea178e54a00980bba618c4a236f75f014d | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Mon Jan 11 13:06:20 2016 -0800 |
committer | Natalie Weizenbaum <nweiz@google.com> | Mon Jan 11 13:06:20 2016 -0800 |
tree | eb54316cb517b74628a357ba11107dc122c35178 | |
parent | c40f7dc094062c7d7ac0636804405596d7f9e7e8 [diff] |
Add a StreamSinkTransformer class. This makes it easier to programmatically manipulate sinks. In particular, StreamSinkTransformer.fromStreamTransformer makes it easy to use existing encoders and codecs when emitting data. R=lrn@google.com Review URL: https://codereview.chromium.org//1566603002 .
Contains tools to work with asynchronous computations.
The package contains Stream
and Future
related functionality, as well as sub-libraries with different utilities.
The “stream_zip.dart” sub-library contains functionality to combine several streams of events into a single stream of tuples of events.
The “result.dart” sub-library 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.
This package is unrelated to the discontinued async
package with version 0.1.7.
Please file feature requests and bugs at the issue tracker.