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