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

Unified Diff: runtime/bin/timer.dart

Issue 8992007: Make the repeating argument to timers optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 9 years 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/string_stream.dart ('k') | runtime/bin/timer_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/timer.dart
diff --git a/runtime/bin/timer.dart b/runtime/bin/timer.dart
index 34ea2c038c7f5973b5cdc06aea92278543482663..c6389b462637a6ae0c176f22d2bb8640cf8263fa 100644
--- a/runtime/bin/timer.dart
+++ b/runtime/bin/timer.dart
@@ -4,14 +4,19 @@
interface Timer factory _Timer{
- /*
+ /**
* Creates a new timer. The [callback] callback is invoked after
- * [milliSeconds] milliseconds. If [repeating] is set, the timer
- * is repeated every [milliSeconds] milliseconds until cancelled.
+ * [milliSeconds] milliseconds.
*/
- Timer(void callback(Timer timer), int milliSeconds, bool repeating);
+ Timer(void callback(Timer timer), int milliSeconds);
+
+ /**
+ * Creates a new repeating timer. The [callback] is invoked every
+ * [milliSeconds] millisecond until cancelled.
+ */
+ Timer.repeating(void callback(Timer timer), int milliSeconds);
- /*
+ /**
* Cancels the timer.
*/
void cancel();
« no previous file with comments | « runtime/bin/string_stream.dart ('k') | runtime/bin/timer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698