Are coroutines guaranteed to run to completion (i....
# announcements
b
Are coroutines guaranteed to run to completion (i.e. can they be interrupted) on a given thread as long as they don't suspend (i.e. call a suspending function)?
s
See this quote here https://discuss.kotlinlang.org/t/calling-blocking-code-in-coroutines/2368/5
Cancelling a coroutine does not interrupt a thread. This is done so by design, because, unfortunately, many Java libraries incorrectly operate in interrupted threads.
b
got it. thanks!