CoroutineCommandBuilder
Builds a CoroutineCommand, in the same fluent style as com.pedropathing.ivy.CommandBuilder.
The builder is itself a com.pedropathing.ivy.Command, so it can be scheduled or composed with the usual Ivy operators without calling build:
coroutineCommand {
await(arm.toHigh())
wait(0.5)
fork(claw.open())
}.requiring(arm).setPriority(1).schedule()A fresh CoroutineCommand is created from the current configuration every time the builder is started, so one builder can be scheduled repeatedly.
Functions
Creates a CoroutineCommand from the current configuration. Later changes to the builder do not affect commands it has already built.
Sets the requirements of the command.
Sets what the command does when blocked by a command with a higher priority.
Sets the body of the command. See CommandScope for what it can suspend on.
Sets what the command does when a conflicting command with an equal priority is running.
Sets what the command does when interrupted.
Sets the priority the command has over commands with conflicting requirements.