TaskHandle

interface TaskHandle

Represents a handle to a scheduled task.

This interface provides methods to control and query the state of a task that has been scheduled through the Scheduler.

Inheritors

Properties

Link copied to clipboard
abstract val isCancelled: Boolean

Returns whether the task has been cancelled.

Functions

Link copied to clipboard
abstract fun cancel()

Cancels the task.

Link copied to clipboard
abstract fun scheduler(): Scheduler

Returns the Scheduler instance that was used to create this task.

Link copied to clipboard
infix fun TaskHandle.then(delay: Ticks): ThenScope

Chains a task to be executed after the current task with the specified delay.