sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Documentation of some `Stream` members should be updated

Open sgrekhov opened this issue 1 year ago • 0 comments

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()

sgrekhov avatar Oct 11 '24 13:10 sgrekhov