pub fn from_fn<T, F, Fut>(f: F) -> impl Stream<Item = T> + Send + 'staticExpand description
Create a lazy stream from an async generator function.
f is called repeatedly; it should return Some(item) while there are items,
and None to terminate.