add

fun add(action: () -> Unit)

Deprecated

Use onTermination

Replace with

onTermination(action)