cancel abstract method

bool cancel()

Sets internal state of task to 'canceled'.

If the task is still in the queue, it will be removed from it immediately. However, if the task is in a running state, it will nevertheless be completed, as there is no way to interrupt it.

Returns bool. True, if the task was canceled.

False, if the task can't be canceled due to a platform dependent reason.

Implementation

bool cancel();