onStopOnce

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

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

Return

Disposable that allows removing the observer.