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

Unified Diff: runtime/bin/string_stream.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: runtime/bin/string_stream.dart
diff --git a/runtime/bin/string_stream.dart b/runtime/bin/string_stream.dart
index 101583a51bddb6d831e97b617a72467c0a9f258d..d5ca79107d9ee8f340f4c1918b88443d9663827a 100644
--- a/runtime/bin/string_stream.dart
+++ b/runtime/bin/string_stream.dart
@@ -357,7 +357,7 @@ class _StringInputStream implements StringInputStream {
!_decoder.isEmpty() &&
_scheduledDataCallback == null) {
if (_scheduledLineCallback != null) _scheduledLineCallback.cancel();
- _scheduledDataCallback = new Timer(issueDataCallback, 0, false);
+ _scheduledDataCallback = new Timer(issueDataCallback, 0);
}
// Schedule line callback if a line is available.
@@ -365,14 +365,14 @@ class _StringInputStream implements StringInputStream {
(_decoder.lineBreaks > 0 || (!_decoder.isEmpty() && _inputClosed)) &&
_scheduledLineCallback == null) {
if (_scheduledDataCallback != null) _scheduledDataCallback.cancel();
- _scheduledLineCallback = new Timer(issueLineCallback, 0, false);
+ _scheduledLineCallback = new Timer(issueLineCallback, 0);
}
// Schedule close callback if no more data and input is closed.
if (_decoder.isEmpty() &&
_inputClosed &&
_scheduledCloseCallback == null) {
- _scheduledCloseCallback = new Timer(issueCloseCallback, 0, false);
+ _scheduledCloseCallback = new Timer(issueCloseCallback, 0);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698