콘텐츠로 이동
한국어

Cancellable

이 콘텐츠는 아직 번역되지 않았습니다.

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