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

Unified Diff: runtime/bin/timer_impl.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.dart ('k') | samples/actors/core/actors-term.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/timer_impl.dart
diff --git a/runtime/bin/timer_impl.dart b/runtime/bin/timer_impl.dart
index ed7884251a0af25047871605c5739ece9287479d..b55923fc7f1e485825f43bf99bba2f0c2bd9e9a3 100644
--- a/runtime/bin/timer_impl.dart
+++ b/runtime/bin/timer_impl.dart
@@ -26,11 +26,11 @@ class _Timer implements Timer {
return timer;
}
- factory _Timer(void callback(Timer timer), int milliSeconds) {
+ factory _Timer(int milliSeconds, void callback(Timer timer)) {
return _createTimer(callback, milliSeconds, false);
}
- factory _Timer.repeating(void callback(Timer timer), int milliSeconds) {
+ factory _Timer.repeating(int milliSeconds, void callback(Timer timer)) {
return _createTimer(callback, milliSeconds, true);
}
« no previous file with comments | « runtime/bin/timer.dart ('k') | samples/actors/core/actors-term.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698