cancel


Description:

[ Version ( since = "4.2" ) ]
public bool cancel (uint id)

Cancels a job not yet executed.

This may fail for the following reasons:

  • the job id could not be found, either because it has already been treated or because it does not exist or because it was created in another thread
  • the job id is currently being treated by the worker thread

Parameters:

this

a ThreadWrapper object

id

the ID of a job as returned by execute or execute_void

Returns:

true if the job has been cancelled, or false in any other case.