콘텐츠 메인 API - 코루틴 제거

This commit is contained in:
2023-11-07 17:12:58 +09:00
parent ce15025c8d
commit 9a394b7dae
5 changed files with 55 additions and 116 deletions

View File

@@ -1,10 +0,0 @@
package kr.co.vividnext.sodalive.common
import kotlinx.coroutines.sync.Semaphore
import kotlinx.coroutines.sync.withPermit
class SemaphoreManager(private val semaphore: Semaphore) {
suspend fun <T> withPermit(block: suspend () -> T): T {
return semaphore.withPermit { block() }
}
}