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

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

Issue 2006093002: Dart: Futures -> Callbacks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 6 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 | « no previous file | benchmarks/mojo_rtt_benchmark/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/echo_server.dart
diff --git a/benchmarks/mojo_rtt_benchmark/lib/echo_server.dart b/benchmarks/mojo_rtt_benchmark/lib/echo_server.dart
index 04a2601582778318673e3220707f38d322c0b3a9..dbb6295494bfe2b740cf513921d7b298019034e7 100644
--- a/benchmarks/mojo_rtt_benchmark/lib/echo_server.dart
+++ b/benchmarks/mojo_rtt_benchmark/lib/echo_server.dart
@@ -18,8 +18,9 @@ class EchoImpl implements Echo {
_echo.ctrl.onError = _errorHandler;
}
- echoString(String value, [Function responseFactory]) =>
- responseFactory(value);
+ void echoString(String value, void respond(String response)) {
+ respond(value);
+ }
Future close() => _echo.close();
« no previous file with comments | « no previous file | benchmarks/mojo_rtt_benchmark/lib/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698