| Index: sdk/lib/async/future_impl.dart
|
| diff --git a/sdk/lib/async/future_impl.dart b/sdk/lib/async/future_impl.dart
|
| index e91da2b4182f0b13ceb9b2617909d1b1967916b3..53ba3f3e34768b02c37baa9be0070217e7035f56 100644
|
| --- a/sdk/lib/async/future_impl.dart
|
| +++ b/sdk/lib/async/future_impl.dart
|
| @@ -304,31 +304,8 @@ class _FutureImpl<T> implements Future<T> {
|
| }
|
| }
|
|
|
| - _FutureListener _asListener() => new _FutureListener.wrap(this);
|
| -}
|
| -
|
| -/**
|
| - * Transforming future base class.
|
| - *
|
| - * A transforming future is itself a future and a future listener.
|
| - * Subclasses override [_sendValue]/[_sendError] to intercept
|
| - * the results of a previous future.
|
| - */
|
| -abstract class _TransformFuture<S, T> extends _FutureImpl<T>
|
| - implements _FutureListener<S> {
|
| - // _FutureListener implementation.
|
| - _FutureListener _nextListener;
|
| -
|
| - void _sendValue(S value);
|
| -
|
| - void _sendError(AsyncError error);
|
| -
|
| - void _subscribeTo(_FutureImpl future) {
|
| - future._addListener(this);
|
| - }
|
| -
|
| /**
|
| - * Helper function to hand the result of transforming an incoming event.
|
| + * Helper function to handle the result of transforming an incoming event.
|
| *
|
| * If the result is itself a [Future], this future is linked to that
|
| * future's output. If not, this future is completed with the result.
|
| @@ -351,6 +328,29 @@ abstract class _TransformFuture<S, T> extends _FutureImpl<T>
|
| _setValue(result);
|
| }
|
| }
|
| +
|
| + _FutureListener _asListener() => new _FutureListener.wrap(this);
|
| +}
|
| +
|
| +/**
|
| + * Transforming future base class.
|
| + *
|
| + * A transforming future is itself a future and a future listener.
|
| + * Subclasses override [_sendValue]/[_sendError] to intercept
|
| + * the results of a previous future.
|
| + */
|
| +abstract class _TransformFuture<S, T> extends _FutureImpl<T>
|
| + implements _FutureListener<S> {
|
| + // _FutureListener implementation.
|
| + _FutureListener _nextListener;
|
| +
|
| + void _sendValue(S value);
|
| +
|
| + void _sendError(AsyncError error);
|
| +
|
| + void _subscribeTo(_FutureImpl future) {
|
| + future._addListener(this);
|
| + }
|
| }
|
|
|
| /** The onValue and onError handlers return either a value or a future */
|
|
|