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

Unified Diff: samples/chat/chat_server_lib.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: samples/chat/chat_server_lib.dart
diff --git a/samples/chat/chat_server_lib.dart b/samples/chat/chat_server_lib.dart
index 88e332a7b103f7f001933102dda4a4e8e540c68e..c21adfb2989ccb53bac11a3954c18877ebfe2362 100644
--- a/samples/chat/chat_server_lib.dart
+++ b/samples/chat/chat_server_lib.dart
@@ -528,8 +528,8 @@ class IsolatedServer {
_messageRate = new Rate();
// Start a timer for cleanup events.
- _cleanupTimer = new Timer.repeating(const Duration(seconds: 10),
- _topic._handleTimer);
+ _cleanupTimer = new Timer.periodic(const Duration(seconds: 10),
+ _topic._handleTimer);
}
// Start timer for periodic logging.
@@ -576,7 +576,7 @@ class IsolatedServer {
});
replyTo.send(new ChatServerStatus.started(_server.port), null);
_loggingTimer =
- new Timer.repeating(const Duration(seconds: 1), _handleLogging);
+ new Timer.periodic(const Duration(seconds: 1), _handleLogging);
})
.catchError((e) {
replyTo.send(new ChatServerStatus.error2(e.toString()), null);

Powered by Google App Engine
This is Rietveld 408576698