Skip to main content

spawn_warmup

Function spawn_warmup 

pub fn spawn_warmup() -> Option<JoinHandle<()>>
Expand description

Spawn a detached background worker that builds the process’s shared FontSystem and shapes CANONICAL_STRINGS against it, so the fonts the first frame needs are read and mapped beside the rest of the start.

Dropping the returned JoinHandle before the worker finishes doesn’t cancel anything — the process keeps whatever warmup already completed.