Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Unified Diff: sdk/lib/async/stream_transformers.dart

Issue 295913003: Make Stream.where, etc., be documented as inheriting broadcast state. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change asBroadcastStream to always only listen once to its source. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/async/stream_transformers.dart
diff --git a/sdk/lib/async/stream_transformers.dart b/sdk/lib/async/stream_transformers.dart
index 832c395316582dd3f82524fecf7e29c8cf3ba77c..e869486bd07b158caeb54a2f6a609927e9459e7c 100644
--- a/sdk/lib/async/stream_transformers.dart
+++ b/sdk/lib/async/stream_transformers.dart
@@ -171,6 +171,8 @@ class _BoundSinkStream<S, T> extends Stream<T> {
final _SinkMapper<S, T> _sinkMapper;
final Stream<S> _stream;
+ bool get isBroadcast => _stream.isBroadcast;
+
_BoundSinkStream(this._stream, this._sinkMapper);
StreamSubscription<T> listen(void onData(T event),

Powered by Google App Engine
This is Rietveld 408576698