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

Unified Diff: runtime/bin/socket.dart

Issue 10703096: [IO] Improve documentation for dart:io Socket.onWrite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comment Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.dart
diff --git a/runtime/bin/socket.dart b/runtime/bin/socket.dart
index 6c1b49de72023eb589f700e411cf0b33e570d452..e26694d0b5ea03deaf0acdddea08efbabaf1a959 100644
--- a/runtime/bin/socket.dart
+++ b/runtime/bin/socket.dart
@@ -74,8 +74,10 @@ interface Socket extends Hashable default _Socket {
void set onData(void callback());
/**
- * The write handler gets called when the socket becomes available for
- * writing.
+ * The write handler gets called once when the socket becomes
+ * available for writing. Then the handler is automatically reset to null.
+ * This handler is mainly used when writeList has reported an incomplete
+ * write, to schedule writing the remaining data to the socket.
*/
void set onWrite(void callback());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698