finish

fun finish()

Causes a task to end and fire finishing methods.