Glossary: Kotlin Beyond the Basics
Mutex
Also written: withLock
A lock letting one coroutine at a time run a block. `withLock { }` waits its turn, suspending rather than blocking.
Glossary: Kotlin Beyond the Basics
Also written: withLock
A lock letting one coroutine at a time run a block. `withLock { }` waits its turn, suspending rather than blocking.