https://kotlinlang.org logo
#coroutines
Title
# coroutines
l

louiscad

04/18/2018, 6:54 AM
Is this a good idea?
Copy code
mutex.withLock(owner = coroutineContext) {
   // Some suspend calls
}
v

Vsevolod Tolstopyatov [JB]

04/18/2018, 8:00 PM
what’s use case?
l

louiscad

04/19/2018, 7:25 AM
Failing fast in case of reentrant lock caused by direct or indirect recursive call
But I guess it's just a matter of a
withContext
to stop it from working...
And get a deadlock
6 Views