File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
wpilibNewCommands/src/main
java/edu/wpi/first/wpilibj2/command
native/include/frc2/command Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1111import java .util .function .Supplier ;
1212
1313/**
14- * Runs the given command when this command is initialized, and ends when it ends. Useful for
15- * performing runtime tasks before creating a new command. If this command is interrupted, it will
16- * cancel the command.
14+ * Runs the command returned by the supplier when this command is initialized, and ends when it
15+ * ends. Useful for performing runtime tasks before creating a new command. If this command is
16+ * interrupted, it will cancel the command.
17+ *
18+ * <p>Note that the supplier <i>must</i> create a new Command each call. For selecting one of a
19+ * preallocated set of commands, use {@link SelectCommand}.
1720 *
1821 * <p>This class is provided by the NewCommands VendorDep
1922 */
Original file line number Diff line number Diff line change 1515
1616namespace frc2 {
1717/* *
18- * Runs the given command when this command is initialized, and ends when it
19- * ends. Useful for performing runtime tasks before creating a new command. If
20- * this command is interrupted, it will cancel the command.
18+ * Runs the command returned by the supplier when this command is initialized,
19+ * and ends when it ends. Useful for performing runtime tasks before creating a
20+ * new command. If this command is interrupted, it will cancel the command.
21+ *
22+ * Note that the supplier <i>must</i> create a new Command each call. For
23+ * selecting one of a preallocated set of commands, use SelectCommand.
2124 *
2225 * <p>This class is provided by the NewCommands VendorDep
2326 */
You can’t perform that action at this time.
0 commit comments