fetch_job_result


Description:

[ Version ( since = "6.0" ) ]
public bool fetch_job_result (uint job_id, void* out_result) throws Error

Fetch the value returned by execution the job_id job.

Warning: if an error occurred during the execution of the requested function within the worker thread, then it will show as throws, while the return value of this function will be true.

Note: if there is a result, it will be stored in out_result, and it's up to the caller to free the result, the Worker object will not do it (ownership of the result is transfered to the caller).

Parameters:

this

a Worker object

job_id

the ID of the job, as returned by submit_job

out_result

a place to store the value returned by the execution of the requested function within the worker thread, or null

Returns:

true if the jobs has completed