Function block_in_place

Source
pub fn block_in_place<R>(f: impl FnOnce() -> R + Send) -> R
where R: Send,
Expand description

Tells the scheduler about blocking work happening in the current thread. It will make sure to allocate extra threads for the pool.