https://kotlinlang.org logo
#koin
Title
# koin
j

Jakub Gwóźdź

07/29/2022, 7:08 AM
Hi there. So I have very basic setup with a few modules and some
single { … }
in them. Can I somehow ensure that if these singletons implement AutoCloseable, their `.close()`s will be called at
stopKoin()
?
ok nvm, found
Copy code
single { blahblah() } .onClose { it?.close() }
🙂
5 Views