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

Unified Diff: runtime/bin/input_stream.dart

Issue 9029001: Add close to input stream and cleanup socket and streams (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments by ager@ Created 8 years, 12 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_impl.dart ('k') | runtime/bin/list_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/input_stream.dart
diff --git a/runtime/bin/input_stream.dart b/runtime/bin/input_stream.dart
index e6e66264a76627657ddbf8113596a5d4bef69f51..a4bc010d9bcb3121bb87029710f3593ce683f89b 100644
--- a/runtime/bin/input_stream.dart
+++ b/runtime/bin/input_stream.dart
@@ -67,6 +67,15 @@ interface InputStream {
void pipe(OutputStream output, [bool close]);
/**
+ * Close the underlying communication channel to avoid getting any
+ * more data. In normal situations, where all data is read from the
+ * stream until the close handler is called, calling [close] is not
+ * required. When [close] is used the close handler will still be
+ * called.
+ */
+ void close();
+
+ /**
* Returns whether the stream is closed. There will be no more data
* to read.
*/
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | runtime/bin/list_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698