arrow-fx-coroutines / arrow.fx.coroutines / Semaphore / invoke
suspend operator fun ~~invoke~~(n:
Long
):
Semaphore
Deprecated: Use KotlinX Semaphore
Constructs a Semaphore initialized with n available permits.
import arrow.fx.coroutines.*
suspend fun main(): Unit {
//sampleStart
val semaphore = Semaphore(5)
//sampleEnd
}
suspend operator fun ~~invoke~~(n:
Int
):
Semaphore
Deprecated: Use KotlinX Semaphore
Do you like Arrow?
✖