Deprecate a bunch of stuff, add Result transformer constants.
Modernize the package's style.

This moves the package to new-style doc comments, deprecates separate
top-level libraries, and removes library tags. It also deprecates some
top-level classes in favor of static const fields.

There's more that could be done, but this fixes most of the low-hanging
fruit.

R=lrn@google.com

Review URL: https://codereview.chromium.org//1777453002 .
41 files changed
tree: a80f36a60bb6872d0ca0f79b0670aaeca90a6966
  1. .gitignore
  2. .test_config
  3. AUTHORS
  4. CHANGELOG.md
  5. CONTRIBUTING.md
  6. LICENSE
  7. README.md
  8. codereview.settings
  9. lib/
  10. pubspec.yaml
  11. test/
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.