ThreadWrapper.cancel

Cancels a job not yet executed. This may fail for the following reasons: <itemizedlist> <listitem><para>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</para></listitem> <listitem><para>the job id is currently being treated by the worker thread</para></listitem> </itemizedlist>

class ThreadWrapper
bool
cancel
(
uint id
)

Parameters

id uint

Return Value

Type: bool

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