[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

@@ -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);
}