[command] Clean up Command doc comments (NFC) (#5321)

This commit is contained in:
Joseph Eng
2023-06-22 19:43:51 -07:00
committed by GitHub
parent c1a01569b4
commit fe32127ea8
3 changed files with 27 additions and 37 deletions

View File

@@ -115,10 +115,9 @@ class Command {
friend class CommandPtr;
/**
* Decorates this command with a timeout. If the specified timeout is
* Decorates this command with a timeout. If the specified timeout is
* exceeded before the command finishes normally, the command will be
* interrupted and un-scheduled. Note that the timeout only applies to the
* command returned by this method; the calling command is not itself changed.
* interrupted and un-scheduled.
*
* @param duration the timeout duration
* @return the command with the timeout added
@@ -127,10 +126,9 @@ class Command {
CommandPtr WithTimeout(units::second_t duration) &&;
/**
* Decorates this command with an interrupt condition. If the specified
* Decorates this command with an interrupt condition. If the specified
* condition becomes true before the command finishes normally, the command
* will be interrupted and un-scheduled. Note that this only applies to the
* command returned by this method; the calling command is not itself changed.
* will be interrupted and un-scheduled.
*
* @param condition the interrupt condition
* @return the command with the interrupt condition added
@@ -139,13 +137,12 @@ class Command {
CommandPtr Until(std::function<bool()> condition) &&;
/**
* Decorates this command with a run condition. If the specified condition
* Decorates this command with a run condition. If the specified condition
* becomes false before the command finishes normally, the command will be
* interrupted and un-scheduled. Note that this only applies to the command
* returned by this method; the calling command is not itself changed.
* interrupted and un-scheduled.
*
* @param condition the interrupt condition
* @return the command with the interrupt condition added
* @param condition the run condition
* @return the command with the run condition added
*/
[[nodiscard]]
CommandPtr OnlyWhile(std::function<bool()> condition) &&;
@@ -153,8 +150,7 @@ class Command {
/**
* Decorates this command with an interrupt condition. If the specified
* condition becomes true before the command finishes normally, the command
* will be interrupted and un-scheduled. Note that this only applies to the
* command returned by this method; the calling command is not itself changed.
* will be interrupted and un-scheduled.
*
* @param condition the interrupt condition
* @return the command with the interrupt condition added
@@ -283,9 +279,9 @@ safe) semantics.
CommandPtr IgnoringDisable(bool doesRunWhenDisabled) &&;
/**
* Decorates this command to run or stop when disabled.
* Decorates this command to have a different interrupt behavior.
*
* @param interruptBehavior true to run when disabled.
* @param interruptBehavior the desired interrupt behavior
* @return the decorated command
*/
[[nodiscard]]