Function bicoro::bind_err

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

Process the err value, or continue with ok

Allows you to use coroutines to tranform and routine that is carrying error forward. This is particularly useful to emit outputs in response to that error