콘텐츠 메인 API - 코루틴 적용
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package kr.co.vividnext.sodalive.configs
|
||||
|
||||
import kotlinx.coroutines.sync.Semaphore
|
||||
import kr.co.vividnext.sodalive.common.SemaphoreManager
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
|
||||
@Configuration
|
||||
class SemaphoreConfig {
|
||||
@Bean
|
||||
fun semaphoreManager(): SemaphoreManager {
|
||||
return SemaphoreManager(Semaphore(4))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user