addOnFinish

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

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