onReset

infix fun onReset(onReset: Runnable): DynamicTask

Runs when the task is reset to its initial state.


protected open override fun onReset()

Called when the task is resetting now. Override this method to add custom reset behaviour, such as resetting any internal state variables such as iterators or lists.