Function xtra::spawn_tokio
source · pub fn spawn_tokio<A>(
actor: A,
(address, mailbox): (Address<A>, Mailbox<A>)
) -> Address<A>
Available on crate feature
tokio
only.Expand description
Spawns the given actor into the tokio runtime, returning an Address
to it.