Function bicoro::failable::bind[][src]

pub fn bind<'a, I: 'a, O: 'a, A: 'a, B: 'a, E: 'a, F: 'a>(
    result: ResultCoroutine<'a, I, O, A, E>,
    binder: F
) -> ResultCoroutine<'a, I, O, B, E> where
    F: FnOnce(A) -> ResultCoroutine<'a, I, O, B, E>, 
Expand description

Bind for the result coroutine

This functions just like and_then for coroutine The one difference is that it has semantics like result, if a failure has occured, that will propagate