Skip to content

Commit

Permalink
Better comments and variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
kytpbs committed Dec 16, 2024
1 parent 07bb16e commit 3a36e0d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,14 @@ public RepeatCommand repeatedly() {
* commands with {@link CommandScheduler#removeComposedCommand(Command)}. The command composition
* returned from this method can be further decorated without issue.
*
* @param times the count of times to run the command (inclusively).
* @param times the count of times to run the command.
* @return the decorated command
*/
public ParallelRaceGroup repeatedly(int times) {
public ParallelRaceGroup repeatedly(int repetitions) {
AtomicInteger counter = new AtomicInteger(0);
return this.finallyDo(counter::getAndIncrement)
.repeatedly()
.until(() -> counter.get() >= times);
.until(() -> counter.get() >= repetitions);
}

/**
Expand Down

0 comments on commit 3a36e0d

Please sign in to comment.