I have an endpoint in ktor performing a long calcu...
# ktor
j
I have an endpoint in ktor performing a long calculation. Is there any way to interrupt it in case the client connection is closed? I've tried a simple route test with a loop and delays and the coroutine is not cancelled if the client closes.
c
Generally, no. It is possible in very few cases and it is quite unreliable
j
Thanks! After reading ktor code that was my impression but I wanted to confirm it.