Join Slack
Powered by
I am trying to use Koin's Ktor requestScope lifecy...
# koin
i
Isaac Udy
05/06/2026, 11:05 AM
I am trying to use Koin's Ktor requestScope lifecycle callbacks, as described here:
https://insert-koin.io/docs/reference/koin-ktor/ktor-scopes#scope-lifecycle-callbacks
However, these onClose/onCreate methods don't seem to exist... Anyone have any idea what I might be doing wrong?
✔️ 1
a
arnaud.giuliani
05/19/2026, 6:29 AM
the
onClose
part comes from the definition DSL. You need to use
scoped { } onClose { }
arnaud.giuliani
05/19/2026, 6:38 AM
Doc is fixed:
https://insert-koin.io/docs/reference/koin-ktor/ktor-scopes/#scope-lifecycle-callbacks
i
Isaac Udy
05/20/2026, 7:59 PM
🙌 thank you!
5
Views
Open in Slack
Previous
Next