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

Unified Diff: runtime/bin/input_stream.dart

Issue 8437090: Change the handling of closing sockets (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments by ager@ Created 9 years, 1 month 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/eventhandler_win.cc ('k') | runtime/bin/output_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 e7394aa44b252201867e61098e89dae683e73297..aa64e4fce4b9ed418b1959382818bf54371429b3 100644
--- a/runtime/bin/input_stream.dart
+++ b/runtime/bin/input_stream.dart
@@ -31,20 +31,19 @@ interface InputStream {
int available();
/**
- * Returns whether the stream has been closed. There might still be
- * more data to read.
+ * Returns whether the stream is closed. There will be no more data
+ * to read.
*/
- bool closed();
+ bool get closed();
/**
- * Sets the data which handler gets called when data is available.
+ * Sets the data handler which gets called when data is available.
*/
void set dataHandler(void callback());
/**
- * The close handler gets called when the underlying communication
- * channel is closed and no more data will become available. Not all
- * types of communication channels will emit close events.
+ * Sets the close handler which gets called when there will be no more
+ * data available in the stream.
*/
void set closeHandler(void callback());
« no previous file with comments | « runtime/bin/eventhandler_win.cc ('k') | runtime/bin/output_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698