Chromium Code Reviews| Index: sdk/lib/async/timer.dart |
| diff --git a/sdk/lib/async/timer.dart b/sdk/lib/async/timer.dart |
| index 3544728ece9ad5f242f97da7d80a2104ca8e89a9..7bbaf2d13035c2479fca39383bae73bd255744f9 100644 |
| --- a/sdk/lib/async/timer.dart |
| +++ b/sdk/lib/async/timer.dart |
| @@ -57,6 +57,16 @@ abstract class Timer { |
| * Cancels the timer. |
| */ |
| void cancel(); |
| + |
| + /** |
| + * Returns whether the timer is still active. |
| + * |
| + * A non-periodic callback is active if the callback has not been executed, |
|
floitsch
2013/07/01 17:50:56
My fault should have been:
"A non-periodic timer i
zarah
2013/07/02 11:22:01
Done.
|
| + * and the timer has not been canceled. |
| + * |
| + * A periodic callback is active if it has not been canceled. |
| + */ |
| + bool get isActive; |
| } |
| external Timer _createTimer(Duration duration, void callback()); |