I have a single threaded context, is there a way t...
# server
c
I have a single threaded context, is there a way to query if some coroutine is running in that context at any given time?
a
There is a debug coroutine module that might help
v
If you are asking about programatically querying if a particular coroutine is running,
job.isActive
might be of use https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-job/ btw there is a #coroutines channel as well
c
thanks, isActive worked in my case
because it tells me when a job is either running or waiting for a children to complete, so essentially when the job is "working", not completed or cancelled or not started if used through LAZY start