if (!pool.awaitTermination(timeoutMs, TimeUnit.MILLISECONDS)) {
List<Runnable> leftovers = pool.shutdownNow(); // Cancel currently executing tasks
if (!leftovers.isEmpty())
if (!pool.awaitTermination(timeoutMs, TimeUnit.MILLISECONDS)) {
List<Runnable> leftovers = pool.shutdownNow(); // Cancel currently executing tasks
if (!leftovers.isEmpty())