We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Mutex.lock()
1 parent 1d6e493 commit d1c8a3cCopy full SHA for d1c8a3c
common/kotlinx-coroutines-core-common/src/sync/Mutex.kt
@@ -56,6 +56,8 @@ public interface Mutex {
56
* This function can be used in [select] invocation with [onLock] clause.
57
* Use [tryLock] to try acquire lock without waiting.
58
*
59
+ * This function is fair; suspended callers are resumed in first-in-first-out order.
60
+ *
61
* @param owner Optional owner token for debugging. When `owner` is specified (non-null value) and this mutex
62
* is already locked with the same token (same identity), this function throws [IllegalStateException].
63
*/
0 commit comments