asStream abstract method
Creates aStream containing the result of this future.
The stream will produce single data or error event containing thecompletion result of this future, and then it will close with adone event.
If the future never completes, the stream will not produce any events.
Implementation
Stream<T> asStream();