runWithDeadline

fun runWithDeadline(deadline: Command, vararg otherCommands: Command)

Run a group of commands at the same time. Ends once a specific command finishes, and cancels the others.

Parameters

deadline

The deadline command

otherCommands

The other commands to run


fun runWithDeadline(deadline: Command, sequence: SequentialCommandBuilder.() -> Unit)

Run a command sequence that ends once a specific command finishes.

Parameters

deadline

The deadline command

sequence

The sequence to run