TaskHandle

interface TaskHandle

Handle for a scheduled task.

Implementations must make cancel idempotent.

Properties

Link copied to clipboard
abstract val isCancelled: Boolean

Whether cancel has been requested.

Functions

Link copied to clipboard
abstract fun cancel()

Cancels the task. Safe to call multiple times.