| OLD | NEW |
| 1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
| 2 // Dart core library. | 2 // Dart core library. |
| 3 | 3 |
| 4 class FutureImpl<T> implements Future<T> { | 4 class FutureImpl<T> implements Future<T> { |
| 5 | 5 |
| 6 bool _isComplete = false; | 6 bool _isComplete = false; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Value that was provided to this Future by the Completer | 9 * Value that was provided to this Future by the Completer |
| 10 */ | 10 */ |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 } | 223 } |
| 224 | 224 |
| 225 void complete(T value) { | 225 void complete(T value) { |
| 226 _futureImpl._setValue(value); | 226 _futureImpl._setValue(value); |
| 227 } | 227 } |
| 228 | 228 |
| 229 void completeException(Object exception, [Object stackTrace]) { | 229 void completeException(Object exception, [Object stackTrace]) { |
| 230 _futureImpl._setException(exception, stackTrace); | 230 _futureImpl._setException(exception, stackTrace); |
| 231 } | 231 } |
| 232 } | 232 } |
| OLD | NEW |