pub async fn spawn<A: Actor + RemoteActor>(
caps: &(impl CanSend + CanOpenPort),
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.