//reactivestate/com.ensody.reactivestate.android/onCreateOnce
onCreateOnce¶
[android]\ fun LifecycleOwner.onCreateOnce(block: () -> Unit): Disposable
Runs the given block once on the next Lifecycle.Event.ON_DESTROY
.
Return¶
Disposable that allows removing the observer.