We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc3ce4b commit 745fca9Copy full SHA for 745fca9
common/kotlinx-coroutines-core-common/src/sync/Mutex.kt
@@ -100,7 +100,8 @@ public fun Mutex(locked: Boolean = false): Mutex =
100
/**
101
* Executes the given [action] under this mutex's lock.
102
*
103
- * @param owner Optional owner token for debugging.
+ * @param owner Optional owner token for debugging. When `owner` is specified (non-null value) and this mutex
104
+ * is already locked with the same token (same identity), this function throws [IllegalStateException].
105
106
* @return the return value of the action.
107
*/
0 commit comments