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

Unified Diff: runtime/bin/stream_util.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/process_impl.dart ('k') | runtime/bin/string_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stream_util.dart
diff --git a/runtime/bin/stream_util.dart b/runtime/bin/stream_util.dart
index 9c27c2b9420ec208a6d52b99b0a35e60a2bfbe9a..d558bfaabb37cd0838a0f348412058c02d930cd3 100644
--- a/runtime/bin/stream_util.dart
+++ b/runtime/bin/stream_util.dart
@@ -110,12 +110,12 @@ class _BaseDataInputStream {
if (!_closeCallbackCalled) {
if (available() > 0) {
if (_scheduledDataCallback == null) {
- _scheduledDataCallback = new Timer(issueDataCallback, 0);
+ _scheduledDataCallback = new Timer(0, issueDataCallback);
}
} else if (_streamMarkedClosed && !_closeCallbackCalled) {
_cancelScheduledDataCallback();
_close();
- _scheduledCloseCallback = new Timer(issueCloseCallback, 0);
+ _scheduledCloseCallback = new Timer(0, issueCloseCallback);
_closeCallbackCalled = true;
}
}
« no previous file with comments | « runtime/bin/process_impl.dart ('k') | runtime/bin/string_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698