Skip to content

Commit f1a24b1

Browse files
Francesco Vascoelizarov
Francesco Vasco
authored andcommitted
Mutex fairness documentation (Kotlin#90)
1 parent d0597e7 commit f1a24b1

File tree

1 file changed

+2
-0
lines changed
  • kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/sync

1 file changed

+2
-0
lines changed

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/sync/Mutex.kt

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public interface Mutex {
100100

101101
/**
102102
* Creates new [Mutex] instance.
103+
* The mutex created is fair: lock is granted in first come, first served order.
104+
*
103105
* @param locked initial state of the mutex.
104106
*/
105107
public fun Mutex(locked: Boolean = false): Mutex = MutexImpl(locked)

0 commit comments

Comments
 (0)