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

Unified Diff: runtime/bin/socket_stream_impl.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/socket_stream_impl.dart
diff --git a/runtime/bin/socket_stream_impl.dart b/runtime/bin/socket_stream_impl.dart
index 101bf489854d8f44e7d4508584ae463db937e63c..1781ac27d6c5911ba908f30517a6b0a1d39a3a92 100644
--- a/runtime/bin/socket_stream_impl.dart
+++ b/runtime/bin/socket_stream_impl.dart
@@ -103,6 +103,10 @@ class _SocketOutputStream
buffer, offset, (len == null) ? buffer.length - offset : len, true);
}
+ void flush() {
+ // Nothing to do on a socket output stream.
+ }
+
void close() {
if (!_pendingWrites.isEmpty()) {
// Mark the socket for close when all data is written.

Powered by Google App Engine
This is Rietveld 408576698