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

Unified Diff: samples/actors/core/actors-term.dart

Issue 9597015: Update Timer API to take the callback as the last parameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « runtime/bin/timer_impl.dart ('k') | samples/chat/chat_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/actors/core/actors-term.dart
diff --git a/samples/actors/core/actors-term.dart b/samples/actors/core/actors-term.dart
index 50d6fd66d1133130e14ac32f6ddf0552316d7073..3cdda0d977ec5fd7381602d98e2c04b3137199ab 100644
--- a/samples/actors/core/actors-term.dart
+++ b/samples/actors/core/actors-term.dart
@@ -14,7 +14,7 @@ class _WindowActor extends Actor {
* of milliseconds specified by 'timeout' parameter.
*/
on["setTimeout"] = (Reply reply, int timeout) {
- new Timer((Timer t) {reply.respond();}, timeout);
+ new Timer(timeout, (Timer t) {reply.respond();});
};
}
}
« no previous file with comments | « runtime/bin/timer_impl.dart ('k') | samples/chat/chat_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698