W3cubDocs

/Kotlin

read

Platform and version requirements: JVM (1.0)
inline fun <T> ReentrantReadWriteLock.read(
    action: () -> T
): T

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

Return the return value of the action.