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 part of dart.core; |
| 5 |
4 class _FutureImpl<T> implements Future<T> { | 6 class _FutureImpl<T> implements Future<T> { |
5 | 7 |
6 bool _isComplete = false; | 8 bool _isComplete = false; |
7 | 9 |
8 /** | 10 /** |
9 * Value that was provided to this Future by the Completer | 11 * Value that was provided to this Future by the Completer |
10 */ | 12 */ |
11 T _value; | 13 T _value; |
12 | 14 |
13 /** | 15 /** |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 282 |
281 void complete(T value) { | 283 void complete(T value) { |
282 _futureImpl._setValue(value); | 284 _futureImpl._setValue(value); |
283 } | 285 } |
284 | 286 |
285 void completeException(Object exception, [Object stackTrace]) { | 287 void completeException(Object exception, [Object stackTrace]) { |
286 _futureImpl._setException(exception, stackTrace); | 288 _futureImpl._setException(exception, stackTrace); |
287 } | 289 } |
288 } | 290 } |
289 | 291 |
OLD | NEW |