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

Unified Diff: lib/src/client.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 | « CHANGELOG.md ('k') | lib/src/peer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/client.dart
diff --git a/lib/src/client.dart b/lib/src/client.dart
index f63fde6cb8ca4d60d2299dcdb0bb0624d191f048..763a9871adb7c257e85171d8bdab23d10c9e5557 100644
--- a/lib/src/client.dart
+++ b/lib/src/client.dart
@@ -37,6 +37,9 @@ class Client {
/// This is the same future that's returned by [listen].
Future get done => _streams.done;
+ /// Whether the connection is closed.
+ bool get isClosed => _streams.isClosed;
+
/// Creates a [Client] that writes requests to [requests] and reads responses
/// from [responses].
///
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/peer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698