sdk
sdk copied to clipboard
Documentation of some `Stream` members should be updated
See Stream.isEmpty:
https://github.com/dart-lang/sdk/blob/c5c7fc8486646c5d20d0cfe7991959044b7e27f1/sdk/lib/async/stream.dart#L1317-L1319
Non-broadcast stream created by Stream.fromIterable() can be listened more than once, so it can be listened after call of isEmpty.
See Stream.elementAt():
https://github.com/dart-lang/sdk/blob/c5c7fc8486646c5d20d0cfe7991959044b7e27f1/sdk/lib/async/stream.dart#L1565-L1567
The same. It's not true for non-broadcast streams created by Stream.fromIterable()