Semaphore

class Semaphore

Asynchronous Semaphore.

Constructors

<init>

Semaphore(limit: Int)

Asynchronous Semaphore.

Properties

limit

val limit: Int

is the semaphores permits count limit

Functions

enter

suspend fun enter(): Unit

Enters the semaphore.

leave

fun leave(): Unit

Exits the semaphore.