Allow core threads to time out in dispatchers
This commit is contained in:
parent
1513c2c0c4
commit
94e01628f0
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ trait ThreadPoolBuilder {
|
|||
def buildThreadPool(): Unit = synchronized {
|
||||
ensureNotActive
|
||||
inProcessOfBuilding = false
|
||||
threadPoolBuilder.allowCoreThreadTimeOut(true)
|
||||
if (boundedExecutorBound > 0) {
|
||||
val boundedExecutor = new BoundedExecutorDecorator(threadPoolBuilder, boundedExecutorBound)
|
||||
boundedExecutorBound = -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue