doOnDispose

inline fun DisposableScope.doOnDispose(crossinline block: () -> Unit)

Adds the provided block callback to the scope. The callback will be called when the scope is disposed.