Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Sep 15, 2023
1 parent dac965d commit f8b7931
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public static Command select(Map<Object, Command> commands, Supplier<Object> sel
}

/**
* Constructs a command that schedules the supplied command when initialized, and ends when it is
* no longer scheduled.
* Constructs a command that schedules the command returned from the supplier when initialized, and ends when it is
* no longer scheduled. The supplier is called when the command is initialized.
*
* @param supplier the command supplier
* @return the command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,19 @@ CommandPtr Select(std::function<Key()> selector,
}

/**
* Constructs a command that schedules the supplied command when initialized,
* and ends when it is no longer scheduled
* Constructs a command that schedules the command returned from the supplier
* when initialized, and ends when it is no longer scheduled. The supplier is
* called when the command is initialized.
*
* @param supplier the command supplier
*/
[[nodiscard]]
CommandPtr DeferredProxy(wpi::unique_function<Command*()> supplier);

/**
* Constructs a command that schedules the supplied command when initialized,
* and ends when it is no longer scheduled
* Constructs a command that schedules the command returned from the supplier
* when initialized, and ends when it is no longer scheduled. The supplier is
* called when the command is initialized.
*
* @param supplier the command supplier
*/
Expand Down

0 comments on commit f8b7931

Please sign in to comment.