Function mesh_worker::launch_local_worker

source ·
pub async fn launch_local_worker<T: Worker>(
    parameters: T::Parameters,
) -> Result<WorkerHandle>
Expand description

Launches a worker locally.

When launched via this API, a worker’s parameters do not have to derive MeshPayload.

§Example

let worker = launch_local_worker::<MyWorker>(()).await.unwrap();