| Index: lib/core/future.dart
|
| diff --git a/lib/core/future.dart b/lib/core/future.dart
|
| index 148620295e1fb087f5d48e5aee7c1dbd6917cf7f..8c7207a3bea14eaa47a7271dafb6c5fc44eb866d 100644
|
| --- a/lib/core/future.dart
|
| +++ b/lib/core/future.dart
|
| @@ -27,10 +27,9 @@
|
| *
|
| * Use a [Completer] to create and change the state of a [Future].
|
| */
|
| -interface Future<T> default FutureImpl<T> {
|
| -
|
| +abstract class Future<T> {
|
| /** A future whose value is immediately available. */
|
| - Future.immediate(T value);
|
| + factory Future.immediate(T value) => new FutureImpl<T>.immediate(value);
|
|
|
| /** The value provided. Throws an exception if [hasValue] is false. */
|
| T get value;
|
| @@ -158,9 +157,9 @@ interface Future<T> default FutureImpl<T> {
|
| * completer.completeException(exception);
|
| *
|
| */
|
| -interface Completer<T> default CompleterImpl<T> {
|
| +abstract class Completer<T> {
|
|
|
| - Completer();
|
| + factory Completer() => new CompleterImpl<T>();
|
|
|
| /** The future that will contain the value produced by this completer. */
|
| Future get future;
|
| @@ -198,7 +197,6 @@ class FutureAlreadyCompleteException implements Exception {
|
| * example, waiting for a collection of Futures to complete).
|
| */
|
| class Futures {
|
| -
|
| /**
|
| * Returns a future which will complete once all the futures in a list are
|
| * complete. If any of the futures in the list completes with an exception,
|
|
|