Skip to main content

on_blocking_worker

Function on_blocking_worker 

Source
pub fn on_blocking_worker() -> bool
Expand description

Reports whether the calling thread is a blocking-pool worker.

Callers already on a worker own that thread for the duration of their job, so they can run further synchronous work inline instead of queueing it behind themselves.