Allows to cancel a running execution.

interface Cancellable {
    cancel(): void;
    isCancelled(): boolean;
}

Methods