pub async fn spawn<A: Actor + Referable>(
cx: &impl Actor,
proc_actor: &ActorRef<ProcActor>,
actor_name: &str,
params: &A::Params,
) -> Result<ActorRef<A>, Error>where
A::Params: RemoteMessage,
Expand description
Convenience utility to spawn an actor on a proc. Spawn returns with the new ActorRef on success.