pub fn job_worker_sleep_or_shutdown(
state: &JobWorkerState,
milliseconds: u64,
) -> boolExpand description
Sleeps in bounded slices and reports whether shutdown was not requested.
§Parameters
state: Input consumed bycrate::runtime::job::job_worker_sleep_or_shutdown.milliseconds: Input consumed bycrate::runtime::job::job_worker_sleep_or_shutdown.
§Returns
Returns true when the condition checked by crate::runtime::job::job_worker_sleep_or_shutdown holds and false otherwise.
§Examples
ⓘ
let _result = pharos_native::runtime::job::job_worker_sleep_or_shutdown(todo!(), todo!());§Related
crate::runtime::jobfor adjacent helpers that share the same runtime surface.