W3cubDocs

/Kotlin

read

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

Platform and version requirements: JVM

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

Return the return value of the action.