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

Unified Diff: sdk/lib/io/socket_stream_impl.dart

Issue 12213092: Rework Timer interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 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 | « sdk/lib/io/secure_socket.dart ('k') | sdk/lib/io/stream_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket_stream_impl.dart
diff --git a/sdk/lib/io/socket_stream_impl.dart b/sdk/lib/io/socket_stream_impl.dart
index 7770932bac69623384ba85e9dd62f11102c7907a..d156bd7e6f450fd1410c8ad336ed8a80825508b0 100644
--- a/sdk/lib/io/socket_stream_impl.dart
+++ b/sdk/lib/io/socket_stream_impl.dart
@@ -102,7 +102,7 @@ class _SocketOutputStream
_socket._closeWrite();
_closed = true;
// Invoke the callback asynchronously.
- new Timer(0, (t) {
+ Timer.run(() {
if (_onClosed != null) _onClosed();
});
}
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | sdk/lib/io/stream_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698