toggle menu
micro_utils.dokka
0.23.0
common
switch theme
search in API
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
SmartSemaphore
/
Mutable
/
tryAcquire
try
Acquire
suspend
fun
tryAcquire
(
permits
:
Int
=
1
)
:
Boolean
(
source
)
Will try to lock this
SmartSemaphore
immediataly
Return
True if lock was successful. False otherwise