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

Unified Diff: sdk/lib/async/timer.dart

Issue 18325006: Add isActive field on Timer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/async/timer.dart
diff --git a/sdk/lib/async/timer.dart b/sdk/lib/async/timer.dart
index 3544728ece9ad5f242f97da7d80a2104ca8e89a9..0ea89fb4ca4c83027f60ad97e27e030731fcc050 100644
--- a/sdk/lib/async/timer.dart
+++ b/sdk/lib/async/timer.dart
@@ -57,6 +57,11 @@ abstract class Timer {
* Cancels the timer.
*/
void cancel();
+
+ /**
+ * Returns true if the timer is not done, that is it will run the callback.
floitsch 2013/07/01 12:49:43 Returns whether the timer is still active. A non-
zarah 2013/07/01 16:15:35 Done.
+ */
+ bool get isActive;
}
external Timer _createTimer(Duration duration, void callback());

Powered by Google App Engine
This is Rietveld 408576698