CoroutineTaskHandle

class CoroutineTaskHandle(plugin: Plugin, job: Job) : TaskHandle

A TaskHandle implementation for Coroutine jobs.

Constructors

Link copied to clipboard
constructor(plugin: Plugin, job: Job)

Properties

Link copied to clipboard
open override val isCancelled: Boolean

Checks if the underlying Coroutine job is cancelled.

Functions

Link copied to clipboard
open override fun cancel()

Cancels the underlying Coroutine job.

Link copied to clipboard
open override fun scheduler(): Scheduler

Returns the scheduler for the associated plugin.

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.