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

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: 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
Index: runtime/bin/timer.dart
diff --git a/runtime/bin/timer.dart b/runtime/bin/timer.dart
index 34ea2c038c7f5973b5cdc06aea92278543482663..51a7c327704a2057ac010880855c72398edbb58e 100644
--- a/runtime/bin/timer.dart
+++ b/runtime/bin/timer.dart
@@ -8,8 +8,9 @@ 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.
+ * [repeating] is false by default.
*/
- Timer(void callback(Timer timer), int milliSeconds, bool repeating);
+ Timer(void callback(Timer timer), int milliSeconds, [bool repeating]);
/*
* Cancels the timer.

Powered by Google App Engine
This is Rietveld 408576698