cancel method

bool cancel()

Cancels a running task. Has no effect on a complete or failed task. Returns true if it had an effect.

Implementation

bool cancel() => jsObject.cancel();