Hello! How can i make HttpClient's coroutine scope...
# ktor
p
Hello! How can i make HttpClient's coroutine scope not cancelling on call fails?
t
not sure what you're trying to do here, but if you need a block that doesn't cannot be canceled you can do
Copy code
withContext(NonCancellable) { 
   //Even if parent is canceled this block won't be
}
This should usually be used sparingly though since it breaks some of the benefits of structured concurrency