pub fn is_runtime_worker_thread() -> boolExpand 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.