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

Unified Diff: sdk/lib/async/future_impl.dart

Issue 14886015: Use runAsync for Futures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
Index: sdk/lib/async/future_impl.dart
diff --git a/sdk/lib/async/future_impl.dart b/sdk/lib/async/future_impl.dart
index 4c1d7449264c0132a8d79779e8c88141e314c2db..1d5de401a1a0586ed141e5391c24fac7a56c588b 100644
--- a/sdk/lib/async/future_impl.dart
+++ b/sdk/lib/async/future_impl.dart
@@ -217,7 +217,7 @@ class _FutureImpl<T> implements Future<T> {
_state |= _UNHANDLED_ERROR;
// Wait for the rest of the current event's duration to see
// if a subscriber is added to handle the error.
- Timer.run(() {
+ runAsync(() {
if (_hasUnhandledError) {
// No error handler has been added since the error was set.
_clearUnhandledError();
@@ -236,7 +236,7 @@ class _FutureImpl<T> implements Future<T> {
if (_isComplete) {
_clearUnhandledError();
// Handle late listeners asynchronously.
- Timer.run(() {
+ runAsync(() {
if (_hasValue) {
T value = _resultOrListeners;
listener._sendValue(value);
« pkg/scheduled_test/lib/src/utils.dart ('K') | « pkg/unittest/test/unittest_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698