Rachel
Toggle table of contents
3.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.core
/
love.yinlin.concurrent
/
Mutex
Mutex
class
Mutex
(
locked
:
Boolean
=
false
)
Members
Constructors
Mutex
Link copied to clipboard
constructor
(
locked
:
Boolean
=
false
)
Properties
is
Locked
Link copied to clipboard
val
isLocked
:
Boolean
Functions
lock
Link copied to clipboard
suspend
fun
lock
(
)
try
Lock
Link copied to clipboard
fun
tryLock
(
)
:
Boolean
unlock
Link copied to clipboard
fun
unlock
(
)
with
Link copied to clipboard
inline suspend
fun
with
(
block
:
(
)
->
Unit
)