Join Slack
Communities
Powered by
Is there an easy way to test if a coroutine is lea...
# coroutines
b
blakelee
06/19/2019, 6:20 PM
Is there an easy way to test if a coroutine is leaking?
u
ursus
06/19/2019, 7:34 PM
dont know but Id cancel the scope and see if stuff is still running
v
Vsevolod Tolstopyatov [JB]
07/02/2019, 2:20 PM
yes, you can use debug agent for that:
https://github.com/Kotlin/kotlinx.coroutines/tree/master/kotlinx-coroutines-debug
E.g.
DebugAgent.dumpCoroutinesInfo().isEmpty()
4
Views
Open in Slack
Previous
Next