Skip to main content

is_runtime_worker_thread

Function is_runtime_worker_thread 

Source
pub fn is_runtime_worker_thread() -> bool
Expand description

Whether the current OS thread is one of the process runtime’s fixed workers.

Synchronous compatibility adapters use this to reject waits that would consume a trusted runtime worker and could deadlock the work they submitted.