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

Unified Diff: sdk/lib/io/io_sink.dart

Issue 2687963003: [dart:io] flush() stdin before close()ing (Closed)
Patch Set: Created 3 years, 10 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 | « pkg/testing/lib/src/stdio_process.dart ('k') | tests/standalone/io/named_pipe_script_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/io_sink.dart
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart
index b1c05a02542b9a412e1440f49c83df226210fe42..fe3eb9f57735d91aaeff1a49cff3f4601746764b 100644
--- a/sdk/lib/io/io_sink.dart
+++ b/sdk/lib/io/io_sink.dart
@@ -123,6 +123,10 @@ abstract class IOSink implements StreamSink<List<int>>, StringSink {
/**
* Close the target consumer.
+ *
+ * NOTE: Writes to the [IOSink] may be buffered, and may not be flushed by the
+ * a call to `close()`. To flush all buffered writes, call `flush()` before
+ * calling `close()`.
*/
Future close();
« no previous file with comments | « pkg/testing/lib/src/stdio_process.dart ('k') | tests/standalone/io/named_pipe_script_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698