Class ParallelRaceGroup

All Implemented Interfaces:

public class ParallelRaceGroup
extends Command
A composition that runs a set of commands in parallel, ending when any one of the commands ends and interrupting all the others.

The rules for command compositions apply: command instances that are passed to it cannot be added to any other composition or scheduled individually, and the composition requires all subsystems its components require.

This class is provided by the NewCommands VendorDep

  • Constructor Details

    • ParallelRaceGroup

      public ParallelRaceGroup​(Command... commands)
      Creates a new ParallelCommandRace. The given commands will be executed simultaneously, and will "race to the finish" - the first command to finish ends the entire command, with all other commands being interrupted.
      commands - the commands to include in this composition.
  • Method Details