addOnInterrupt

infix fun addOnInterrupt(onInterrupt: Consumer<Task>): DynamicTask
fun addOnInterrupt(onInterrupt: Runnable, ktCompatUnusedIgnore: Any? = null): DynamicTask

Adds additional onInterrupt code to run after the current onInterrupt code.