pub fn observe<I, O, R>(
co: Coroutine<'_, I, O, R>
) -> Coroutine<'_, I, O, (Option<O>, Coroutine<'_, I, O, R>)>
Expand description
Get the next output of the coroutine
This captures the next output, allowing it to be inspected instead of emitted. Returns the observed value and the remaining coroutine. If the coroutine has ended, the observed value is none.