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

Unified Diff: runtime/bin/socket_stream_impl.dart

Issue 10832188: Add an OutputStream.closed getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 c50f64a85a57a881ebf5d8f6b7673111e37a21e8..22d3f73b1e07d1cd73702d0c6bd12c1e81fb7be4 100644
--- a/runtime/bin/socket_stream_impl.dart
+++ b/runtime/bin/socket_stream_impl.dart
@@ -136,6 +136,8 @@ class _SocketOutputStream
_closed = true;
}
+ bool get closed() => _closed;
+
void set onNoPendingWrites(void callback()) {
_onNoPendingWrites = callback;
if (_onNoPendingWrites != null) {

Powered by Google App Engine
This is Rietveld 408576698