DataSource Extensions
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
DataSource Extensions
datasourcex-util
/
com.caplin.integration.datasourcex.util
/
ReadWriteLock
Read
Write
Lock
class
ReadWriteLock
(
source
)
A non-reentrant suspending implementation of a Read-Write lock.
Members
Constructors
Read
Write
Lock
Link copied to clipboard
constructor
(
)
Functions
read
Lock
Link copied to clipboard
suspend
fun
readLock
(
)
read
Unlock
Link copied to clipboard
suspend
fun
readUnlock
(
)
with
Read
Lock
Link copied to clipboard
suspend
fun
<
R
>
withReadLock
(
block
:
suspend
(
)
->
R
)
:
R
with
Write
Lock
Link copied to clipboard
suspend
fun
<
R
>
withWriteLock
(
block
:
suspend
(
)
->
R
)
:
R
write
Lock
Link copied to clipboard
suspend
fun
writeLock
(
)
write
Unlock
Link copied to clipboard
fun
writeUnlock
(
)