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

Unified Diff: runtime/bin/http_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/file_impl.dart ('k') | runtime/bin/list_stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http_impl.dart
diff --git a/runtime/bin/http_impl.dart b/runtime/bin/http_impl.dart
index dc36276275bf2009cbdb2ba7adc117f58a73134a..4bc975f9a5828037b58bd27b32ae77cd927ff6dc 100644
--- a/runtime/bin/http_impl.dart
+++ b/runtime/bin/http_impl.dart
@@ -1062,7 +1062,7 @@ class _HttpClient implements HttpClient {
} else {
_SocketConnection socketConn = socketConnections.removeFirst();
_activeSockets.add(socketConn);
- new Timer((ignored) => _connectionOpened(socketConn, connection), 0);
+ new Timer(0, (ignored) => _connectionOpened(socketConn, connection));
// Get rid of eviction timer if there are no more active connections.
if (socketConnections.isEmpty()) {
@@ -1109,7 +1109,7 @@ class _HttpClient implements HttpClient {
}
});
}
- _evictionTimer = new Timer.repeating(_handleEviction, 10000);
+ _evictionTimer = new Timer.repeating(10000, _handleEviction);
}
// Return connection.
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | runtime/bin/list_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698