Companion

object Companion

Properties

Link copied to clipboard

Timeout value for an infinite task that will run forever.

Functions

Link copied to clipboard
fun <T : Task> cast(task: Task?, cast: Class<T>): T

Utility to cast a task into the desired task class. Useful for ignoring task nullability to cast into a new type - ensure your task exists before calling.

Link copied to clipboard
fun ddl(vararg tasks: Task): DeadlineTaskGroup

Shorthand group utility for creating a DeadlineTaskGroup.

Link copied to clipboard
infix fun BunyipsSubsystem.default(defaultTask: Task)

Default task setter extension for BunyipsSubsystem to set the default task of a subsystem.

Link copied to clipboard
fun defer(taskBuilder: () -> Task): DeferredTask

Constructor utility to create a new DeferredTask based on the supplied task builder.

Link copied to clipboard

Shorthand group utility for creating a IncrementingTaskGroup.

Link copied to clipboard

Utility for creating a DynamicTask that will loop some function until the task is manually finished.

Link copied to clipboard

Alias for loop. May need to be called to avoid calling the OpMode loop() method.

Link copied to clipboard
fun par(vararg tasks: Task): ParallelTaskGroup

Shorthand group utility for creating a ParallelTaskGroup.

Link copied to clipboard
fun rce(vararg tasks: Task): RaceTaskGroup

Shorthand group utility for creating a RaceTaskGroup.

Link copied to clipboard

Utility for creating a DynamicTask that will loop some function for some time.

Link copied to clipboard

Shorthand group utility for creating a SequentialTaskGroup.

Link copied to clipboard

Utility to create a new DynamicTask instance for building a new task.

fun task(block: DynamicTask.() -> Unit): DynamicTask

DSL function to create a new DynamicTask instance for building a new task.

Link copied to clipboard

Utility for creating a DynamicTask that will wait for some condition and finish when the condition is true.