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

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: Rebased to r8419 Created 8 years, 6 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/list_stream_impl.dart ('k') | runtime/bin/socket_stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/output_stream.dart
diff --git a/runtime/bin/output_stream.dart b/runtime/bin/output_stream.dart
index 78663cb6d34f5403136e1b8eceaea52d6c47655d..cfbf8e51daa28c61ebbb555c7434b1ae3ff1565e 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();
+
+ /**
* 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.
« no previous file with comments | « runtime/bin/list_stream_impl.dart ('k') | runtime/bin/socket_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698