Function core::iter::from_coroutine
source · pub fn from_coroutine<G: Coroutine<Return = ()> + Unpin>(
coroutine: G,
) -> FromCoroutine<G>🔬This is a nightly-only experimental API. (
iter_from_coroutine #43122)Expand description
Creates a new iterator where each iteration calls the provided coroutine.
Similar to iter::from_fn.