kotlin.concurrent.java.util.concurrent.locks.Lock.withLock

withLock

inline fun <T> Lock.withLock(action: () -> T): T

Platform and version requirements: JVM

Executes the given action under this lock.

Return the return value of the action.