I have an application running a ktor server that h...
# ktor
s
I have an application running a ktor server that has endoints that responds to isalive and isready. I also have an SSE listener listening for SSE events from an upstream server. I want the entire app to die if an exception occurs in the SSE listener. How can I achieve this? It is the coroutine aspect of this that I find hard to deal with, so the question might also belong in #C1CFAFJSK
a
In short, if you have a root coroutine scope, then you can cancel it to terminate the application when an exception occurs in the SSE listener.
s
Ah, yea that makes sense I guess. Thanks!