Wait Task
Constructors
Inherited properties
Get the subsystem reference that this task has elected a dependency on. Will return an Optional where if it is not present, this task is not dependent on any subsystem.
Enabling will reject all future on calls. Useful for composing tasks that will internally re-schedule a wrapped Task.
Query (but not update) the finished state of the task. This will return true if the task is finished and the finisher has been fired.
Whether this task should override other tasks in the queue if they conflict with this task. Will only apply if this task has a dependency to run on (see dependency).
Functions
Inherited functions
Composes a WaitTask to run before this task.
Compose this task into a SequentialTaskGroup with the supplied task to run before this one.
Implicitly run a SequentialTaskGroup with this supplied Runnable, queued to run before this task starts.
Compose this task into a SequentialTaskGroup with the supplied tasks to run before this one.
Implicitly run a SequentialTaskGroup with this supplied Runnable named name, queued to run before this task starts.
Compose this task into a DeadlineTaskGroup with the supplied task to run alongside this one until this task is done.
Compose this task into a DeadlineTaskGroup with the supplied tasks to run these extra tasks until this task is done.
Scheduling method that will either attach this task to a subsystem or run it as part of the standard run method. This is the recommended way to run a task as it will attempt to run on the context as provided by the dependency.
Composes a ParallelTaskGroup with a WaitTask to run before this task. This will ensure the task runs for at least the specified time, and no-ops until the duration if it finishes early.
Creates a new DynamicTask instance by wrapping this existing Task instance, allowing you to add new functionality to a task without modifying the original task.
Compose this task into a IncrementingTaskGroup with the supplied task to run alongside this one until one finishes.
Compose this task into a IncrementingTaskGroup with the supplied tasks to run the next task in sequence after the previous one finishes, while looping back to the first task.
Set the subsystem you want to elect this task to run on, notifying the runner that this task should run there. This task is scheduled with default override behaviour (where this task is not priority).
Set the subsystem you want to elect this task to run on, notifying the runner that this task should run there.
Compose this task into a RaceTaskGroup with the supplied task to run alongside this one until one finishes.
Compose this task into a RaceTaskGroup with the supplied tasks to run all of these tasks until one finishes.
Wrap this task in a RepeatTask where finish conditions are reset immediately.
Attempts to assign this task as the default task of the current dependency.
Compose this task into a SequentialTaskGroup with the supplied task to follow after this one.
Implicitly run a SequentialTaskGroup with this supplied Runnable, queued to run when this task finishes.
Compose this task into a SequentialTaskGroup with the supplied tasks to follow after this one.
Implicitly run a SequentialTaskGroup with this supplied Runnable named name, queued to run when this task finishes.
Get a verbose string representation of this task, including all of its properties.
Compose this task into a RaceTaskGroup with a wait condition based on this condition.
Compose this task into a ParallelTaskGroup with the supplied task to run alongside this one.
Compose this task into a ParallelTaskGroup with the supplied tasks to run all of these tasks at once.