in app/src/main/kotlin/io/klibs/app/configuration/ExecutorServiceConfiguration.kt [17:23]
fun scheduledExecutorService(): ScheduledExecutorService {
return if (threadCount <= 1) {
Executors.newSingleThreadScheduledExecutor()
} else {
Executors.newScheduledThreadPool(threadCount)
}
}