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

Unified Diff: sdk/lib/async/zone.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/zone.dart
diff --git a/sdk/lib/async/zone.dart b/sdk/lib/async/zone.dart
index 5f9fce92436f6543bbfc34eb9ebfa2eca0d58c34..b7e9680389e00485e0ee98a8ee781ff65721cb92 100644
--- a/sdk/lib/async/zone.dart
+++ b/sdk/lib/async/zone.dart
@@ -453,6 +453,8 @@ class _ZoneTimer implements Timer {
_isDone = true;
_timer.cancel();
}
+
+ bool get isActive => !_isDone;
}
typedef void _PeriodicTimerCallback(Timer timer);
@@ -481,6 +483,8 @@ class _PeriodicZoneTimer implements Timer {
_isDone = true;
_timer.cancel();
}
+
+ bool get isActive => !_isDone;
floitsch 2013/07/01 12:49:43 ditto.
zarah 2013/07/01 16:15:35 Done.
}
/**

Powered by Google App Engine
This is Rietveld 408576698