commit | 5661c47a5fdeb7168952c5bb2ed3010aea2050c3 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Tue Aug 25 09:51:50 2015 +0200 |
committer | Lasse R.H. Nielsen <lrn@google.com> | Tue Aug 25 09:51:50 2015 +0200 |
tree | d162503f28e6aa429e31724d37fbafd9cf2637bf | |
parent | 4f738ba8d86b24f8d7066c3a49fe02be638ac3b5 [diff] |
Make it possible to not complete a request when the event source is done. Abstract the event source of a stream queue so it doesn't have to be a stream. This is in anticipation of adding look-ahead which will need to keep the request alive until the user fast-forwards or rewindes, even after the original event source is done, and which will need a stream queue fed by the look-ahead request, not by a stream. R=nweiz@google.com Review URL: https://codereview.chromium.org//1305063002 .
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.