跳转到内容
简体中文

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