Skip to main content

spawn_adaptive_warmup

Function spawn_adaptive_warmup 

Source
pub(crate) fn spawn_adaptive_warmup(
    config: AdaptiveWarmupConfig,
    pool: EmbedPool,
    rx: Receiver<(usize, usize)>,
)
Expand description

Spawns the adaptive background warmup task.

Must be called after EmbedPool::spawn so a pool clone is available. The caller creates the JIT suspect channel before spawning the pool and passes the receiver half here; the sender half is stored in crate::embedder::WorkerConfig::jit_suspect_tx.

Does nothing if config.enabled is false.