Skip to main content

EMBED_RUNTIME_MIN_WORKER_THREADS

Constant EMBED_RUNTIME_MIN_WORKER_THREADS 

Source
pub const EMBED_RUNTIME_MIN_WORKER_THREADS: usize = 2;
Expand description

Lower bound on Tokio worker threads for the shared embedding runtime (GAP-SG-141 B2).

Two threads keep a blocking block_on caller from starving the reactor on a single-core host, which is the historical hard-coded value.