Is it possible to know all the status of a coroutine Job ?
I find this function extension but I can't access to all the status of a Job
:
fun Job.status(): String = when {
isCancelled -> "cancelled"
isActive -> "Active"
isCompleted -> "Complete"
else -> "Nothing"
}
There is no isNew
, isCancelling
or isWaitingForChildren
functions with the Job
classe. Why ?