Skip to main content

job_worker_stop

Function job_worker_stop 

Source
pub fn job_worker_stop(
    state: &JobWorkerState,
) -> Result<(), JobWorkerLifecycleError>
Expand description

Signals a managed worker, joins it, and releases its owned thread handle.

§Parameters

§Returns

Returns the successful value produced by crate::runtime::job::job_worker_stop or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::job::job_worker_stop cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::runtime::job::job_worker_stop(todo!());