Zum Inhalt springen
Deutsch

Cancellable

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Defined in: src/Scheduler.ts:4

A handle that lets callers cancel a scheduled task.

readonly isCancelled: boolean

Defined in: src/Scheduler.ts:15

Whether the schedule is finished: cancelled, or — for a one-shot — fired. A repeating schedule is only finished once it is cancelled.

cancel(): boolean

Defined in: src/Scheduler.ts:10

Cancel the schedule. true when this call did the cancelling, false when there was nothing left to cancel — already cancelled, or a one-shot that has already fired.

boolean