Semaphore

class Semaphore

Deprecated: Ktor Semaphore is deprecated and will be removed in ktor 2.0.0. Consider using kotlinx.coroutines Semaphore instead.

Constructors

<init>

Semaphore(limit: Int)

Properties

limit

val limit: Int

Functions

acquire

suspend fun acquire(): Unit

enter

suspend fun enter(): Unit

leave

fun leave(): Unit

release

fun release(): Unit