DisposableFuture<T>.fromFuture constructor

DisposableFuture<T>.fromFuture(
  1. Future<T> future
)

Returns a disposable version of Future by converting it into a stream.

Implementation

factory DisposableFuture.fromFuture(Future<T> future) {
  return DisposableFuture<T>.first(future.asStream());
}