Wait for cancel before next listen in switchLatest (dart-lang/stream_transform#137)

If a stream is performing resource cleanup on cancel it may be a problem
to listen to the next stream and start consuming resources before the
cleanup is done. Propagate errors during the cancel to the result stream.
4 files changed
tree: 4d6b1f7e19067c6f8f50c1b647e8e5e30ac51b9e
  1. pkgs/