on

open fun on(subsystem: BunyipsSubsystem, override: Boolean): Task

Set the subsystem you want to elect this task to run on, notifying the runner that this task should run there.

Return

this task

Parameters

subsystem

The subsystem to elect as the runner of this task

override

Whether this task should override conflicting tasks on this subsystem (not incl. default tasks)


infix fun on(subsystem: BunyipsSubsystem): 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).

Return

this task

Parameters

subsystem

The subsystem to elect as the runner of this task