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

Unified Diff: lib/src/peer.dart

Issue 1328503003: Add Server.isClosed and Client.isClosed. (Closed) Base URL: git@github.com:dart-lang/json_rpc_2.git@master
Patch Set: Code review changes Created 5 years, 3 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 | « lib/src/client.dart ('k') | lib/src/server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/peer.dart
diff --git a/lib/src/peer.dart b/lib/src/peer.dart
index 54c38b7d00b98e92fb9a34c7661921bb32ff0411..7821d9fe9994e7f2e9380f65b012f65634da8f5a 100644
--- a/lib/src/peer.dart
+++ b/lib/src/peer.dart
@@ -42,6 +42,7 @@ class Peer implements Client, Server {
final _outgoingForwarder = new StreamController(sync: true);
Future get done => _streams.done;
+ bool get isClosed => _streams.isClosed;
/// Creates a [Peer] that reads incoming messages from [incoming] and writes
/// outgoing messages to [outgoing].
« no previous file with comments | « lib/src/client.dart ('k') | lib/src/server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698