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

Unified Diff: runtime/bin/file_impl.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/chunked_stream.dart ('k') | runtime/bin/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_impl.dart
diff --git a/runtime/bin/file_impl.dart b/runtime/bin/file_impl.dart
index 98f35d07ba8715cb0e1a306ef1a57530e5815b76..8ab5bbbf29afdd5e61c5212dd2c4bdf2f46cc393 100644
--- a/runtime/bin/file_impl.dart
+++ b/runtime/bin/file_impl.dart
@@ -1021,9 +1021,9 @@ class _RandomAccessFile implements RandomAccessFile {
void set onNoPendingWrites(void handler()) {
_onNoPendingWrites = handler;
if (_pendingWrites == 0) {
- _noPendingWriteTimer = new Timer((t) {
+ _noPendingWriteTimer = new Timer(0, (t) {
if (_onNoPendingWrites != null) _onNoPendingWrites();
- }, 0);
+ });
}
}
« no previous file with comments | « runtime/bin/chunked_stream.dart ('k') | runtime/bin/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698