v1.6.21
  • Solutions
    • Multiplatform Mobile
    • Multiplatform for other platforms
    • Server-side
    • Web frontend
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.concurrent / java.util.concurrent.locks.ReentrantReadWriteLock

Extensions for java.util.concurrent.locks.ReentrantReadWriteLock

JVM
1.0

read

Executes the given action under the read lock of this lock.

fun <T> ReentrantReadWriteLock.read(action: () -> T): T
JVM
1.0

write

Executes the given action under the write lock of this lock.

fun <T> ReentrantReadWriteLock.write(action: () -> T): T
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains
esc