leave

fun leave()

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
release()