Function bicoro::bind_ok

source ·
pub fn bind_ok<'a, I, O, A, B, E, F>(
    co: Coroutine<'a, I, O, Result<A, E>>,
    f: F
) -> Coroutine<'a, I, O, Result<B, E>>where
    F: FnOnce(A) -> Coroutine<'a, I, O, Result<B, E>> + Send + 'a,
Expand description

Process the Ok value, or short-circuit

This is basically result semantics