ConditionalTask

open inner class ConditionalTask

A task that will run when a condition is met.

Constructors

Link copied to clipboard
constructor(originalRunCondition: BooleanSupplier)
Create and allocate a new conditional task.

Properties

Link copied to clipboard
protected open var activeSince: Long
Link copied to clipboard
protected open var debouncing: Boolean
Link copied to clipboard
Link copied to clipboard
protected open var stopCondition: BooleanSupplier
Link copied to clipboard
protected open var taskToRun: Task
Link copied to clipboard
protected open var time: Measure<Time>

Functions

Link copied to clipboard
Chain an AND condition to the current conditional task.
Link copied to clipboard
open fun finishingIf(condition: BooleanSupplier)
Run the task assigned to in run() until this condition is met.
Link copied to clipboard
open fun in(interval: Measure<Time>)
Run a task assigned to in run() in a certain amount of time of the condition remaining true.
Link copied to clipboard
open fun inTime(interval: Measure<Time>)
Run a task assigned to in run() in a certain amount of time of the condition remaining true.
Link copied to clipboard
open fun inTimeFinishingIf(interval: Measure<Time>, condition: BooleanSupplier)
Run the task assigned to in run() in a certain amount of time of the condition remaining true.
Link copied to clipboard
Mute this task from being a part of the Scheduler report.
Link copied to clipboard
Chain an OR condition to the current conditional task.
Link copied to clipboard
Implicitly make a new RunTask to run once the condition is met.
Queue a task when the condition is met.
Link copied to clipboard
Implicitly make a new RunTask to run once the condition is met, debouncing the task from queueing more than once the condition is met.
Queue a task when the condition is met, debouncing the task from queueing more than once the condition is met.
Link copied to clipboard
open fun toString(): String