Skip to content

Commit

Permalink
[commands] Add a warning to schedule javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Sep 13, 2024
1 parent 32252f7 commit 7cf1e9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ private void initCommand(Command command, Set<Subsystem> requirements) {
* using those requirements have been scheduled as interruptible. If this is the case, they will
* be interrupted and the command will be scheduled.
*
* WARNING: using this function directly is often a footgun and should be avoided.
*
* @param command the command to schedule. If null, no-op.
*/
private void schedule(Command command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ class CommandScheduler final : public wpi::Sendable,
* interruptible. If this is the case, they will be interrupted and the
* command will be scheduled.
*
* WARNING: using this function directly is often a footgun and should be avoided.
*
* @param command the command to schedule
*/
void Schedule(const CommandPtr& command);
Expand Down

0 comments on commit 7cf1e9c

Please sign in to comment.