Function xtra::yield_once

source ·
pub async fn yield_once<A>(
    mailbox: &Mailbox<A>,
    actor: &mut A
) -> ControlFlow<(), ()>
where A: Actor,
Expand description

Yields to the manager to handle one message, returning the actor should be shut down or not.