| Index: lib/coreimpl/future_implementation.dart
|
| diff --git a/lib/coreimpl/future_implementation.dart b/lib/coreimpl/future_implementation.dart
|
| index 0272fb68fc47e447db303218b8c0a5cfa0e623ea..15e4f2a0f2721f3ca5fa1ae679122b1d9e4e2a49 100644
|
| --- a/lib/coreimpl/future_implementation.dart
|
| +++ b/lib/coreimpl/future_implementation.dart
|
| @@ -52,7 +52,7 @@ class FutureImpl<T> implements Future<T> {
|
| return res;
|
| }
|
|
|
| - T get value() {
|
| + T get value {
|
| if (!isComplete) {
|
| throw new FutureNotCompleteException();
|
| }
|
| @@ -62,25 +62,25 @@ class FutureImpl<T> implements Future<T> {
|
| return _value;
|
| }
|
|
|
| - Object get exception() {
|
| + Object get exception {
|
| if (!isComplete) {
|
| throw new FutureNotCompleteException();
|
| }
|
| return _exception;
|
| }
|
|
|
| - Object get stackTrace() {
|
| + Object get stackTrace {
|
| if (!isComplete) {
|
| throw new FutureNotCompleteException();
|
| }
|
| return _stackTrace;
|
| }
|
|
|
| - bool get isComplete() {
|
| + bool get isComplete {
|
| return _isComplete;
|
| }
|
|
|
| - bool get hasValue() {
|
| + bool get hasValue {
|
| return isComplete && _exception === null;
|
| }
|
|
|
| @@ -238,7 +238,7 @@ class CompleterImpl<T> implements Completer<T> {
|
|
|
| CompleterImpl() : _futureImpl = new FutureImpl() {}
|
|
|
| - Future<T> get future() {
|
| + Future<T> get future {
|
| return _futureImpl;
|
| }
|
|
|
|
|