diff --git a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java index 9c72c734fb..f154817a0f 100644 --- a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java +++ b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java @@ -110,7 +110,9 @@ public interface Command { * * @param condition the interrupt condition * @return the command with the interrupt condition added + * @deprecated Replace with {@link #until(BooleanSupplier)} */ + @Deprecated(since = "2023") default ParallelRaceGroup withInterrupt(BooleanSupplier condition) { return until(condition); } diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/Command.h b/wpilibNewCommands/src/main/native/include/frc2/command/Command.h index a888e24ae2..94b62b1b18 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/Command.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/Command.h @@ -151,7 +151,9 @@ class Command { * * @param condition the interrupt condition * @return the command with the interrupt condition added + * @deprecated Replace with Until() */ + WPI_DEPRECATED("Replace with Until()") ParallelRaceGroup WithInterrupt(std::function condition) &&; /**