ah ok, thanks, was confused because `job.isComplet...
# getting-started
w
ah ok, thanks, was confused because
job.isCompleted
returns true after
Copy code
cancel()
e
isCompleted
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
👍 1