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

Unified Diff: samples/chat/chat_server.dart

Issue 8992007: Make the repeating argument to timers optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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.dart
diff --git a/samples/chat/chat_server.dart b/samples/chat/chat_server.dart
index 5c54027220afb2c7833352c3ac84bd3bf505e27f..6927154c2de25d6103a1c859a93a74f2750d53c4 100644
--- a/samples/chat/chat_server.dart
+++ b/samples/chat/chat_server.dart
@@ -19,6 +19,6 @@ void main() {
// Start a shutdown timer if requested.
if (stopAfter != null) {
- new Timer((timer) => serverMain.shutdown(), stopAfter * 1000, false);
+ new Timer((timer) => serverMain.shutdown(), stopAfter * 1000);
}
}

Powered by Google App Engine
This is Rietveld 408576698