| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of dart.async; | 5 part of dart.async; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A count-down timer that can be configured to fire once or repeatedly. | 8 * A count-down timer that can be configured to fire once or repeatedly. |
| 9 * | 9 * |
| 10 * The timer counts down from the specified duration to 0. | 10 * The timer counts down from the specified duration to 0. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 /** | 87 /** |
| 88 * Returns whether the timer is still active. | 88 * Returns whether the timer is still active. |
| 89 * | 89 * |
| 90 * A non-periodic timer is active if the callback has not been executed, | 90 * A non-periodic timer is active if the callback has not been executed, |
| 91 * and the timer has not been canceled. | 91 * and the timer has not been canceled. |
| 92 * | 92 * |
| 93 * A periodic timer is active if it has not been canceled. | 93 * A periodic timer is active if it has not been canceled. |
| 94 */ | 94 */ |
| 95 bool get isActive; | 95 bool get isActive; |
| 96 |
| 97 external static Timer _createTimer(Duration duration, void callback()); |
| 98 external static Timer _createPeriodicTimer(Duration duration, |
| 99 void callback(Timer timer)); |
| 96 } | 100 } |
| 97 | 101 |
| 98 external Timer _createTimer(Duration duration, void callback()); | |
| 99 external Timer _createPeriodicTimer(Duration duration, | |
| 100 void callback(Timer timer)); | |
| OLD | NEW |