read

abstract fun <T> read(action: () -> T): T

Executes the given action under a read lock.