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

Unified Diff: runtime/bin/chunked_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 | « client/testing/unittest/unittest_vm.dart ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/chunked_stream.dart
diff --git a/runtime/bin/chunked_stream.dart b/runtime/bin/chunked_stream.dart
index 04f0915f2f41f4b97041547bfed2a11ccf3601b0..f6462e91d93874847fca7c20dae03452b1ccdaf6 100644
--- a/runtime/bin/chunked_stream.dart
+++ b/runtime/bin/chunked_stream.dart
@@ -114,7 +114,7 @@ class _ChunkedInputStream implements ChunkedInputStream {
(_bufferList.length > 0 && _inputClosed)) &&
_clientDataHandler !== null &&
_scheduledDataCallback == null) {
- _scheduledDataCallback = new Timer(issueDataCallback, 0);
+ _scheduledDataCallback = new Timer(0, issueDataCallback);
}
// Schedule close callback if no more data and input is closed.
@@ -125,7 +125,7 @@ class _ChunkedInputStream implements ChunkedInputStream {
if (_scheduledDataCallback != null) {
_scheduledDataCallback.cancel();
}
- _scheduledCloseCallback = new Timer(issueCloseCallback, 0);
+ _scheduledCloseCallback = new Timer(0, issueCloseCallback);
}
}
« no previous file with comments | « client/testing/unittest/unittest_vm.dart ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698