Is there a way i can get all jobs that are currently running or be notified through a broadcast when a job finishes.
I can get all the pending jobs but i would like to know if a job started or is running or ended.
Yes,
JobManager.instance().allJobs.filterNot { it.isFinished }
@vRallev great thanks.
This might be off topic but is there a way i can check if the job is running,maybe check if the thread spawned by that job is running or something like that?
If the job is not finished, then it's running. If the job doesn't exist for a request, then it's not running, yet.
@vRallev Thank You