Function from_coroutine
fn from_coroutine<G: Coroutine<Return = ()> + Unpin>(coroutine: G) -> FromCoroutine<G>
Creates a new iterator where each iteration calls the provided coroutine.
Similar to iter::from_fn.
Examples
let it = from_coroutine;
let v: = it.collect;
assert_eq!;