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
jorge.rego
10/18/2020, 9:50 AM
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: