ThreadWrapper.cancel
bool cancel(uint id)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>
Parameters
id | the ID of a job as returned by gda.thread_wrapper.ThreadWrapper.execute or gda.thread_wrapper.ThreadWrapper.executeVoid |
Returns
true if the job has been cancelled, or false in any other case.