wck
01/18/2018, 10:12 PMjob.isCompleted
returns true after cancel()
elizarov
01/19/2018, 7:11 AMisCompleted
is false
immediately after invocation of cancel()
. If you see it being true
, then it means is had already completed when you check it. Take a look the docs. They explain the whole picture: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-job/index.html