Thanks for the link, I am just curious if this would be the right approach at all. I took a look at Exposed and it uses ThreadContextElement, because it is jvm only. I like the implementation to pass the db conn, which need to be connected to the thread/worker, using coroutine context elements.