minor edits

This commit is contained in:
minjaesong
2019-11-18 12:26:43 +09:00
parent d8317e4226
commit 899bb00aac
2 changed files with 2 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ object ThreadExecutor {
private fun checkShutdown() {
if (!executor.isShutdown) return
if (executor.isShutdown&& !executor.isTerminated)
throw IllegalStateException("Thread pool is still running")
throw IllegalStateException("Pool is closed, come back when all the threads are terminated.")
executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors())
}