ScheduledTask

class ScheduledTask(val task: Task, val trigger: Scheduler.Trigger, val binding: BiConsumer<Boolean, Boolean>)

A bound task that will schedule on the given binding, accepting the previous state of the trigger and current state of the trigger.

Constructors

Link copied to clipboard
constructor(task: Task, trigger: Scheduler.Trigger, binding: BiConsumer<Boolean, Boolean>)

Properties

Link copied to clipboard
Link copied to clipboard

Sequential id for this scheduled task that can be used to unbind this task.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Mute telemetry for this scheduled task.

Link copied to clipboard
fun poll()

Polls the trigger and executes the binding connected to this particular task.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Unmute telemetry for this scheduled task.