RepeatCommand

constructor(command: Command, times: Int)

Parameters

command

the command to run

times

the number of times to run the command. If less than zero, then the command will be run indefinitely.