ScheduledDispatchWorkItem

class ScheduledDispatchWorkItem(scheduledFuture: ScheduledFuture<*>) : DispatchWorkItem

A DispatchWorkItem that wraps a ScheduledFuture<*> created by a ScheduledDispatchQueue

Constructors

ScheduledDispatchWorkItem
Link copied to clipboard
fun ScheduledDispatchWorkItem(scheduledFuture: ScheduledFuture<*>)

Functions

cancel
Link copied to clipboard
open override fun cancel()
Cancels the item from executing

Properties

isCancelled
Link copied to clipboard
open override val isCancelled: Boolean
True if the work item has been cancelled