v1.8.21
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.concurrent / java.util.concurrent.locks.ReentrantReadWriteLock / read

read

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

(source)

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

Return the return value of the action.

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