koin-core / org.koin.dsl / onRelease

onRelease

infix fun <T> BeanDefinition<T>.onRelease(onRelease: OnReleaseCallback<T>): BeanDefinition<T>

Callback when releasing instance