tapchicoma
03/29/2019, 2:01 PMval 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 thistapchicoma
03/29/2019, 2:04 PMtapchicoma
03/29/2019, 3:01 PMSomeClass
inside uses RxJava .autoconnect()
that was never disposedarnaud.giuliani
03/29/2019, 3:12 PMtapchicoma
03/29/2019, 3:13 PMget()
calltapchicoma
03/29/2019, 3:13 PMSomeClass
arnaud.giuliani
03/29/2019, 3:13 PM