Skip to main content

job_worker_start

Function job_worker_start 

Source
pub fn job_worker_start(
    state: &JobWorkerState,
    max_polls: Option<usize>,
) -> Result<(), JobWorkerLifecycleError>
Expand description

Starts one managed worker thread for the supplied state.

§Parameters

§Returns

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

§Errors

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

§Examples

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