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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/isolate_helper.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
Index: sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
index f33154dc95d642cc791d8b8bd0f378c2dfe87717..5b09ac9e1fe5b36c3ced6ec19a291fa0542ea919 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
@@ -1318,7 +1318,7 @@ class TimerImpl implements Timer {
}
}
- TimerImpl.repeating(int milliseconds, void callback(Timer timer))
+ TimerImpl.periodic(int milliseconds, void callback(Timer timer))
: _once = false {
if (hasTimer()) {
_globalState.topEventLoop.activeTimerCount++;
@@ -1327,7 +1327,7 @@ class TimerImpl implements Timer {
convertDartClosureToJS(() { callback(this); }, 0),
milliseconds);
} else {
- throw new UnsupportedError("Repeating timer.");
+ throw new UnsupportedError("Periodic timer.");
}
}

Powered by Google App Engine
This is Rietveld 408576698