micro_utils.dokka
0.20.1
common
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
SmartSemaphore
/
Mutable
/
tryAcquire
try
Acquire
suspend
fun
tryAcquire
(
permits
:
Int
=
1
)
:
Boolean
Will try to lock this
SmartSemaphore
immediataly
Return
True if lock was successful. False otherwise