콘텐츠 메인 API - 코루틴 제거
This commit is contained in:
@@ -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() }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user