← Docs
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
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .