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

Unified Diff: runtime/bin/output_stream.dart

Issue 10832188: Add an OutputStream.closed getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: runtime/bin/output_stream.dart
diff --git a/runtime/bin/output_stream.dart b/runtime/bin/output_stream.dart
index cfbf8e51daa28c61ebbb555c7434b1ae3ff1565e..95d6569a05fc36d3d73c84c8a4e891848f5d734b 100644
--- a/runtime/bin/output_stream.dart
+++ b/runtime/bin/output_stream.dart
@@ -71,6 +71,12 @@ interface OutputStream {
void destroy();
/**
+ * Returns whether the stream is closed. No more data may be written to a
Bill Hesse 2012/08/08 14:21:11 Returns whether the stream has been closed by call
nweiz 2012/08/09 19:39:52 Done.
+ * closed stream.
+ */
+ bool get closed();
+
+ /**
* Sets the handler that gets called when the internal OS buffers
* have been flushed. This callback can be used to keep the rate of
* writing in sync with the rate the system can write data to the

Powered by Google App Engine
This is Rietveld 408576698