Function bicoro::recieve_until

source ·
pub fn recieve_until<'a, Input, Output, Result, F>(
    f: F
) -> Coroutine<'a, Input, Output, Result>where
    F: Fn(Input) -> Coroutine<'a, Input, Output, Option<Result>> + Send + Clone + 'a,
Expand description

Runs recieve until f returns some

This is ran inside it’s own coroutine, so you can call send inside it.