Fix some strong-mode warnings.
Change signature of methods overriding Future.then (#7)

The signature is:
Future<T>.then (<S>((T) → dynamic, {onError: Function}) → Future<S>)

Use `dynamic` rather than leave off the type to future proof against
--no-implicit-dynamic

Constrain SDK to version which includes this signature for Future
4 files changed
tree: 49fe9e0f108ea37cabb481a620267dd26492aa16
  1. lib/
  2. test/
  3. .analysis_options
  4. .gitignore
  5. .test_config
  6. AUTHORS
  7. CHANGELOG.md
  8. codereview.settings
  9. CONTRIBUTING.md
  10. LICENSE
  11. pubspec.yaml
  12. README.md
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.