Marc Knaup
04/29/2020, 7:19 AMMutex
deadlocks caused by recursion?octylFractal
04/29/2020, 7:20 AMowner
parameter, you can pass that and it will throw if you re-lock with the same owner
Marc Knaup
04/29/2020, 7:21 AMoctylFractal
04/29/2020, 7:21 AMowner
I guesscoroutineContext[MyDebugElement] = coroutineContext[MyDebugElement] ?: Any()
, and then pass that as the owner
. if you recurse, then you'll use the same unique object and it'll throwMarc Knaup
04/29/2020, 7:41 AMoctylFractal
04/29/2020, 7:42 AMlouiscad
04/29/2020, 9:00 AMContinuationInterceptor
(CoroutineDispatcher
implements it).octylFractal
04/29/2020, 2:31 PMcoroutineScope {}
or similar then yes