Semaphore

class Semaphore(val limit: Int)

Deprecated (with error)

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

Replace with

import kotlinx.coroutines.sync.Semaphore
Semaphore

Constructors

Link copied to clipboard
fun Semaphore(limit: Int)

Functions

Link copied to clipboard
suspend fun acquire()
Link copied to clipboard
suspend fun enter()
Link copied to clipboard
fun leave()
Link copied to clipboard
fun release()

Properties

Link copied to clipboard
val limit: Int