Skip to main content

from_future

Function from_future 

Source
pub fn from_future<T, F: Future<Output = T>>(future: F) -> impl Stream<Item = T>
Expand description

Creates a stream from a Future. When the Future resolves, the stream emits the value and completes.