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

Unified Diff: mojo/public/dart/src/application_connection.dart

Issue 1060193002: Provide mechanism to close immediately to Dart bindings (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « mojo/public/dart/src/application.dart ('k') | mojo/public/dart/src/event_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/src/application_connection.dart
diff --git a/mojo/public/dart/src/application_connection.dart b/mojo/public/dart/src/application_connection.dart
index 8c354ea672618106c4922223c0e76f8d539f323a..2e80fc1a914db6288a68ca040d95f9ed1e157337 100644
--- a/mojo/public/dart/src/application_connection.dart
+++ b/mojo/public/dart/src/application_connection.dart
@@ -21,7 +21,7 @@ class LocalServiceProvider implements ServiceProvider {
_stub.onError = f;
}
- Future close({bool nodefer: false}) => _stub.close(nodefer: nodefer);
+ Future close({bool immediate: false}) => _stub.close(immediate: immediate);
void connectToService(
String interfaceName, core.MojoMessagePipeEndpoint pipe) {
@@ -101,7 +101,7 @@ class ApplicationConnection {
});
}
- Future close({bool nodefer: false}) {
+ Future close({bool immediate: false}) {
var rspCloseFuture;
var lspCloseFuture;
if (remoteServiceProvider != null) {
@@ -111,7 +111,7 @@ class ApplicationConnection {
rspCloseFuture = new Future.value(null);
}
if (_localServiceProvider != null) {
- lspCloseFuture = _localServiceProvider.close(nodefer: nodefer);
+ lspCloseFuture = _localServiceProvider.close(immediate: immediate);
_localServiceProvider = null;
} else {
lspCloseFuture = new Future.value(null);
« no previous file with comments | « mojo/public/dart/src/application.dart ('k') | mojo/public/dart/src/event_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698