smoothie-lifecycle-ktp / toothpick.smoothie.lifecycle / toothpick.Scope / closeOnDestroy
closeOnDestroy
fun Scope.closeOnDestroy(owner: LifecycleOwner): Scope
The scope will be closed automatically during {@code owner}'s onDestroy event.
Parameters
owner - the lifecycle owner to observe.