CompletableFuture<T> constructor

  1. @Deprecated("CompletableFuture will be removed in 2.0.0. " "Use ResultFuture instead.\n" "See package:my_utility/async/result_future.dart")
CompletableFuture<T>(
  1. FutureOrResultCallback<T> computation
)

Implementation

@Deprecated(
  "CompletableFuture will be removed in 2.0.0. "
  "Use ResultFuture instead.\n"
  "See package:my_utility/async/result_future.dart",
)
factory CompletableFuture(FutureOrResultCallback<T> computation) {
  return CompletableFuture.fromFuture(Future(computation));
}