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

Unified Diff: runtime/bin/string_stream.dart

Issue 9597015: Update Timer API to take the callback as the last parameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « runtime/bin/stream_util.dart ('k') | runtime/bin/timer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/string_stream.dart
diff --git a/runtime/bin/string_stream.dart b/runtime/bin/string_stream.dart
index 083eddbf875fabfa5def25f4a9c009f20043d77d..8b678997050a5121db9216b3ef82e6d1aad5e008 100644
--- a/runtime/bin/string_stream.dart
+++ b/runtime/bin/string_stream.dart
@@ -363,7 +363,7 @@ class _StringInputStream implements StringInputStream {
if (_scheduledLineCallback != null) {
_scheduledLineCallback.cancel();
}
- _scheduledDataCallback = new Timer(issueDataCallback, 0);
+ _scheduledDataCallback = new Timer(0, issueDataCallback);
}
// Schedule line callback if a line is available.
@@ -373,14 +373,14 @@ class _StringInputStream implements StringInputStream {
if (_scheduledDataCallback != null) {
_scheduledDataCallback.cancel();
}
- _scheduledLineCallback = new Timer(issueLineCallback, 0);
+ _scheduledLineCallback = new Timer(0, issueLineCallback);
}
// Schedule close callback if no more data and input is closed.
if (_decoder.isEmpty() &&
_inputClosed &&
_scheduledCloseCallback == null) {
- _scheduledCloseCallback = new Timer(issueCloseCallback, 0);
+ _scheduledCloseCallback = new Timer(0, issueCloseCallback);
}
}
}
« no previous file with comments | « runtime/bin/stream_util.dart ('k') | runtime/bin/timer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698