toFuture method

Future<T> toFuture()

Waits for the first value from the Stream and returns it as a Future.

Implementation

Future<T> toFuture() => streamToFuture(this);