mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[commands] deprecate withInterrupt decorator (#4407)
until() was recently added as a more intuitive alias for this. At this point, keeping this decorator will just cause confusion, given the functionally-equivalent until() alias and the similarly-named getInterruptionBehavior/withInterruptBehavior
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user