Semaphore
class Semaphore
Deprecated: Ktor Semaphore is deprecated. Consider using kotlinx.coroutines.sync.Semaphore instead.
Asynchronous Semaphore.
Constructors
Semaphore(limit: Int) Asynchronous Semaphore. |
Properties
val limit: Int is the semaphores permits count limit |
Functions
suspend fun enter(): Unit Enters the semaphore. |
|
fun leave(): Unit Exits the semaphore. |