https://kotlinlang.org logo
#ktor
Title
# ktor
o

Osmium

07/02/2020, 10:47 AM
hello everyone! has anyone here tried to implement providing ApplicationCall via custom DI (i.e. Koin)? I'm struggling with
ThreadLocal.asContextElement
and stuff (i'm bad at coroutines, to be honest), and i'm curious if someone already implemented that...
Here's the sample code that illustrates my problem: https://github.com/kam1sh/ktor-sandbox/blob/call-in-di/src/main/kotlin/App.kt
Solved it by switching
Dispatchers.Default
to
Dispatchers.Unconfined
!