Skip to main content

sequential

Function sequential 

Source
pub fn sequential<R>(f: impl FnOnce() -> R) -> R
Expand description

Run f on the calling thread with every parallel helper sequential: inside f, threads returns 1 and no work is handed to a thread pool. This is how a single-threaded decode runs, so it stays on the caller’s thread (and on the CPU core class the operating system picked for it) instead of moving to a pool worker.