onDispose

abstract fun onDispose(block: () -> Unit)

Register a callback to run when this effect is disposed (effect re-keyed or removed).