/** * Cancels the execution of this task. * <p> * Note that this will not kill the underlying thread. This will merely toggle the canceled flag. It is * however the task programmers job to check this flag and interrupt / terminate all computations. */ public void cancel() { adapter.cancel(); }