Function xtra::spawn_smol

source ·
pub fn spawn_smol<A>(
    actor: A,
    (address, mailbox): (Address<A>, Mailbox<A>)
) -> Address<A>
where A: Actor<Stop = ()>,
Available on crate feature smol only.
Expand description

Spawns the given actor into the smol runtime, returning an Address to it.