Lock

expect class Lock : Closeable

Constructors

<init>

Lock()

Functions

close

fun close(): Unit

lock

fun lock(): Unit

unlock

fun unlock(): Unit

Extension Functions

withLock

fun <R> Lock.withLock(block: () -> R): R