DisposableFuture<T>.fromFuture constructor
DisposableFuture<T>.fromFuture (
- 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());
}