mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 07:57:55 +02:00
Set max pool size to 1
This commit is contained in:
+1
@@ -12,6 +12,7 @@ open class ThreadPoolTaskExecutorConfig {
|
|||||||
open fun threadPoolTaskExecutor(): ThreadPoolTaskExecutor {
|
open fun threadPoolTaskExecutor(): ThreadPoolTaskExecutor {
|
||||||
val executor = ThreadPoolTaskExecutor()
|
val executor = ThreadPoolTaskExecutor()
|
||||||
executor.corePoolSize = CORE_POOL_SIZE
|
executor.corePoolSize = CORE_POOL_SIZE
|
||||||
|
executor.maxPoolSize = CORE_POOL_SIZE
|
||||||
return executor
|
return executor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user