Is there a way to monitor/assert there are no coroutines in a pending (maybe wrong word) state? i.e. I have a piece of code that dispatches some work in a coroutine on Dispatchers.IO and I'm having some trouble with it bleeding over between integration tests so I want to have a check that confirms all coroutines have completed
01/16/2021, 12:31 AM
I don't know of any built-in way, but you could register the jobs from the coroutines somewhere, and verify they're all finished?