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

Unified Diff: runtime/bin/vmstats/vmstats.dart

Issue 12793003: Rename Timer.repeating to Timer.periodic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | runtime/lib/timer_patch.dart » ('j') | tests/isolate/timer_not_available_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmstats/vmstats.dart
diff --git a/runtime/bin/vmstats/vmstats.dart b/runtime/bin/vmstats/vmstats.dart
index f61ab0181ded7da6693f36cacdcd970c9d8c2a75..3c2f6c37ebd50cdd68f8f809a62fcdd101198785 100644
--- a/runtime/bin/vmstats/vmstats.dart
+++ b/runtime/bin/vmstats/vmstats.dart
@@ -18,7 +18,7 @@ DivElement _statusText;
IsolateListModel _isolates;
Timer _updater;
-final int _POLL_INTERVAL_IN_MS = 1000;
+final int _POLL_INTERVAL = const Duration(seconds: 1);
void main() {
DivElement dashBoard = query('#dashboard');
@@ -33,8 +33,7 @@ void main() {
_isolates = new IsolateListModel();
_isolates.addListener(onUpdateStatus, onRequestFailed);
_isolates.update();
- _updater =
- new Timer.repeating(_POLL_INTERVAL_IN_MS, (timer) => _isolates.update());
+ _updater = new Timer.periodic(_POLL_INTERVAL, (timer) => _isolates.update());
}
void onUpdateStatus(IsolateListModel model) {
« no previous file with comments | « no previous file | runtime/lib/timer_patch.dart » ('j') | tests/isolate/timer_not_available_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698