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

Unified Diff: runtime/bin/output_stream.dart

Issue 9969202: Add method flush to output stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 6583599a7c295b1f7fc53affa7901d3dbcc62517..7e8a13c9b8aec18b3b1e926de1be2992145ba55c 100644
--- a/runtime/bin/output_stream.dart
+++ b/runtime/bin/output_stream.dart
@@ -51,6 +51,13 @@ interface OutputStream {
bool writeString(String string, [Encoding encoding]);
/**
+ * Flushes data from any internal buffers as soon as possible. Note
+ * that the actual meaning of calling [flush] will depend on the
+ * actual type of the underlying communication channel.
+ */
+ void flush();
Mads Ager (google) 2012/04/17 11:56:44 Shouldn't there be some sort of notification that
Søren Gjesse 2012/04/17 13:14:19 The only reason for having flush is that even when
+
+ /**
* Indicate that all data has been written to the output
* stream. When all data has been written to the communication
* channel it will be closed.

Powered by Google App Engine
This is Rietveld 408576698