I'm currently reading <https://github.com/Kotlin/k...
# coroutines
u
I'm currently reading https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md#mutual-exclusion and was wondering why there is no:
Copy code
suspend inline fun <R> Mutex.withLock(action: () -> R): R {
    lock()
    try {
        return action()
    } finally {
        unlock()
    }
}
like the one for
Lock