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

Unified Diff: benchmarks/mojo_rtt_benchmark/lib/main.dart

Issue 1414483010: Dart: Use a RawReceivePort to receive events for Mojo handles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 | « benchmarks/mojo_rtt_benchmark/lib/isolate.dart ('k') | examples/dart/netcat/lib/main.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: benchmarks/mojo_rtt_benchmark/lib/main.dart
diff --git a/benchmarks/mojo_rtt_benchmark/lib/main.dart b/benchmarks/mojo_rtt_benchmark/lib/main.dart
index c5537245e8a0e79121631314bcf070b9601f12c5..7a2f8739c3b2fdd0719f9dcb25334b2c12499134 100644
--- a/benchmarks/mojo_rtt_benchmark/lib/main.dart
+++ b/benchmarks/mojo_rtt_benchmark/lib/main.dart
@@ -54,7 +54,7 @@ class EchoTracingApp extends Application {
for (int i = 0; i < _numClients; i++) {
var newProxy = new EchoProxy.unbound();
newProxy.errorFuture.then((e) {
- _errorHandler();
+ _errorHandler(e);
});
connectToService(echoUrl, newProxy);
_echoProxies.add(newProxy);
@@ -99,7 +99,7 @@ class EchoTracingApp extends Application {
return _echoProxies[idx].ptr.echoString(s);
}
- _errorHandler() {
+ _errorHandler(Object e) {
_doEcho = false;
return Future.wait(_echoProxies.map((p) => p.close())).then((_) {
MojoHandle.reportLeakedHandles();
« no previous file with comments | « benchmarks/mojo_rtt_benchmark/lib/isolate.dart ('k') | examples/dart/netcat/lib/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698