[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:
Starlight220
2022-09-11 20:37:55 +03:00
committed by GitHub
parent d9b4e7b8bf
commit cb33bd71df
2 changed files with 4 additions and 0 deletions

View File

@@ -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<bool()> condition) &&;
/**