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

Unified Diff: sdk/lib/io/file_system_entity.dart

Issue 39943002: Make FileSystemEntity.watch return a broadcast stream. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Document broadcast stream. Created 7 years, 2 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
« no previous file with comments | « runtime/bin/file_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file_system_entity.dart
diff --git a/sdk/lib/io/file_system_entity.dart b/sdk/lib/io/file_system_entity.dart
index 80f1b39ee4ff86ee6f349787d6d512579e2e49a5..c42e3a75946884a820f9f59486826f864177408d 100644
--- a/sdk/lib/io/file_system_entity.dart
+++ b/sdk/lib/io/file_system_entity.dart
@@ -355,7 +355,8 @@ abstract class FileSystemEntity {
* The system will start listening for events once the returned [Stream] is
* being listened to, not when the call to [watch] is issued.
*
- * Note that the returned [Stream] is endless, unless:
+ * The returned value is an endless broadcast [Stream], that only stops when
+ * one of the following happends:
*
* * The [Stream] is canceled, e.g. by calling `cancel` on the
* [StreamSubscription].
« no previous file with comments | « runtime/bin/file_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698