mm, I have a question - if I have following module...
# koin
t
mm, I have a question - if I have following module:
Copy code
val someModule = module {
   scope(named("some")) {
       scoped { SomeClass(get()) }
   }

   single<SomeFunctionTypealias> { { incoming -> get<SomeOtherClass>().process(incoming) } }
}
where
SomeClass
has
SomeFunctionTypealias
as constructor param. Will in this case Koin call
get<SomeOtherClass>()
on scope or will it be got from global scope? I suspect a leak in my app because of this
@arnaud.giuliani would be nice if you can provide an answer 🙂
question solved -
SomeClass
inside uses RxJava
.autoconnect()
that was never disposed
a
ok, wasnt clearly seeing any link between your 2 components 😉
t
scoped class receives the function, that inside has
get()
call
as stream was not disposed this function was invoked on closed scope instance inside
SomeClass
a
take care to not hold a scoped instance from a single one