Hey, is it common practice to pass around a corout...
# ktor
d
Hey, is it common practice to pass around a coroutine context? Specifically, should I pass around the
application
variable? I come from the C# world, and I’m trying to figure out how to actually call suspend functions
j
I guess you are talking about Ktor in server side. You need to find a proper architecture that could fit what you are trying to do. I’ve defined an architecture to build servers with Ktor based on the session from Ryan Harter in Kotlinconf 2018. Here it is the code example: https://github.com/mathias21/KtorEasy And here is the video:

https://www.youtube.com/watch?v=V4PS3IjIzlw

Have a look, it may fit your needs.