RaceCommand

public final class RaceCommand extends CommandGroup

A command that runs commands in parallel until one of them finishes.

Constructors

Link copied to clipboard
public RaceCommand RaceCommand(Command commands)
public RaceCommand RaceCommand(Boolean isInterruptable, Command commands)

Functions

Link copied to clipboard
public Unit add(Command command)

Adds a command to this group.

Link copied to clipboard
public Unit end(Boolean interrupted)

Runs once when this command finishes or is interrupted.

Link copied to clipboard
public Unit execute()

Runs repeatedly until isFinished returns true.

Link copied to clipboard
public Unit init()

Runs once when first scheduled.

Link copied to clipboard

Returns whether this command is finished.