https://kotlinlang.org logo
#coroutines
Title
# coroutines
l

louiscad

10/31/2018, 3:00 PM
It seems
withContext
doesn't throw any
CancellationException
before running the passed block even if the context is cancelled. I thought it checked before, and after running the passed block. Is this an intentional change, a doc misreading or a misunderstanding of the source code from me?
@elizarov Do you have the answer to this question? Should I open an issue on GitHub?
e

elizarov

11/01/2018, 5:12 PM
File a bug and let’s discuss there. There are some tradeoffs to consider.
👍 1
t

travis

11/02/2018, 6:44 PM
Issue link for others that come to this thread and want to follow it: https://github.com/Kotlin/kotlinx.coroutines/issues/785
👍 1
4 Views