| Index: sdk/lib/async/future_impl.dart
|
| diff --git a/sdk/lib/async/future_impl.dart b/sdk/lib/async/future_impl.dart
|
| index 409479d10f53d106f28823eba658385976063275..3086f7d08afbea99d2dd271bfaadfda77ac011d6 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);
|
|
|