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

spierce7

12/30/2018, 9:57 PM
I'd like to provide a custom coroutine context for each request so that each request has a different database connection, but the same database connection is used throughout the entire request. Where would the best place for me to provide this coroutine context be? There are a few ways I've seen that I could potentially do this, and I just realized that
Application
also implements coroutine scope. Can anyone speak to this and make a suggestion as to the best way?