kotlin-stdlib / kotlin.concurrent / java.util.concurrent.locks.Lock Extensions for java.util.concurrent.locks.Lock JVM 1.0 withLock Executes the given action under this lock. fun <T> Lock.withLock(action: () -> T): T