onDestroyOnce

fun LifecycleOwner.onDestroyOnce(block: () -> Unit): <Error class: unknown class>

Runs the given block once on the next Lifecycle.Event.ON_DESTROY.

Return

Disposable that allows removing the observer.