Function xtra::run

source ·
pub async fn run<A>(mailbox: Mailbox<A>, actor: A) -> A::Stop
where A: Actor,
Expand description

Run the provided actor.

This is the primary event loop of an actor which takes messages out of the mailbox and hands them to the actor.