internalRegisterInstanceFactory

inline fun <T : Any> internalRegisterInstanceFactory(noinline instanceFactory: () -> T): Deregisterable

Registers instance factory and returns object able to do deregistration.