| 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);
|
|
|