Skip to main content

spawn_worker

Function spawn_worker 

Source
pub fn spawn_worker(
    capacity: usize,
    bridge: Arc<dyn EventBus>,
    embedder: Arc<dyn Embedder>,
    metrics: Arc<Registry>,
) -> WorkerHandle
Expand description

Start the session-sharded worker pool (16 shards, each behind a bounded channel). Ordering is per session via hash sharding.