class Semaphore
Asynchronous Semaphore.
<init>
Semaphore(limit: Int)
limit
val limit: Int
is the semaphores permits count limit
enter
suspend fun enter(): Unit
Enters the semaphore.
leave
fun leave(): Unit
Exits the semaphore.