lucene-kmp
Toggle table of contents
10.2.0-alpha14
common
Target filter
common
Switch theme
Search in API
Skip to content
lucene-kmp
core
/
org.gnit.lucenekmp.jdkport
/
Semaphore
Semaphore
class
Semaphore
(
permits
:
Int
)
Minimal common-code port of java.util.concurrent.Semaphore used by tests/utilities.
Members
Constructors
Semaphore
Link copied to clipboard
constructor
(
permits
:
Int
)
Functions
acquire
Link copied to clipboard
fun
acquire
(
)
fun
acquire
(
permits
:
Int
)
release
Link copied to clipboard
fun
release
(
)
fun
release
(
permits
:
Int
)
try
Acquire
Link copied to clipboard
fun
tryAcquire
(
)
:
Boolean