[−][src]Function stateright::actor::spawn::spawn
pub fn spawn<A>(actor: A, id: SpawnId) -> JoinHandle<()> where
A: 'static + Send + Actor<SpawnId>,
A::Msg: Debug + DeserializeOwned + Serialize,
A::State: Debug,
Runs an actor by mapping messages to JSON over UDP.