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

Unified Diff: lib/src/peer.dart

Issue 810333007: Add a done getter to Client, Server, and Peer. (Closed) Base URL: git@github.com:dart-lang/json_rpc_2@master
Patch Set: Created 5 years, 11 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 c83724d0605509ecb86ab13848d0185ce08edcd0..54c38b7d00b98e92fb9a34c7661921bb32ff0411 100644
--- a/lib/src/peer.dart
+++ b/lib/src/peer.dart
@@ -41,6 +41,8 @@ class Peer implements Client, Server {
/// and [_client].
final _outgoingForwarder = new StreamController(sync: true);
+ Future get done => _streams.done;
+
/// 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