CompletableFuture<T>.fromFuture constructor
- @Deprecated("CompletableFuture will be removed in 2.0.0. " "Use ResultFuture instead.\n" "See package:my_utility/async/result_future.dart")
CompletableFuture<T>.fromFuture(
- Future<T> _future
)
Implementation
@Deprecated(
"CompletableFuture will be removed in 2.0.0. "
"Use ResultFuture instead.\n"
"See package:my_utility/async/result_future.dart",
)
CompletableFuture.fromFuture(this._future) {
_future.then(
(v) => _result = CompletableFutureValue._(v),
onError: (err, st) => _result = CompletableFutureError._(err, st),
);
}