tree: a80f36a60bb6872d0ca0f79b0670aaeca90a6966 [path history] [tgz]
  1. lib/
  2. test/
  3. .gitignore
  4. .test_config
  5. AUTHORS
  6. CHANGELOG.md
  7. CONTRIBUTING.md
  8. LICENSE
  9. README.md
  10. codereview.settings
  11. pubspec.yaml
README.md

Contains utility classes in the style of dart:async to work with asynchronous computations.

Zipping streams

The StreamZip class can combine several streams of events into a single stream of tuples of events.

Results

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.