Jasjeet Singh
02/13/2024, 1:51 PMscope.launch {
mutex.withLock { ... }
}
Here, does the mutex block the suspend the coroutine just like delay()
(such that it doesn't block a thread's execution but just the coroutine) or a total thread block making essentially all coroutines (scheduled on that thread) blocked as well?ephemient
02/13/2024, 1:52 PMephemient
02/13/2024, 1:53 PMLocks this mutex, suspending caller until the lock is acquired
Jasjeet Singh
02/13/2024, 1:55 PM