Merge pull request #18333 from ttddyy

* pr/18333:
  Use ordered TaskExecutorCustomizers

Fixes gh-18333
pull/18546/head
Phillip Webb 5 years ago
commit 89e7d5fb01

@ -75,7 +75,7 @@ public class TaskExecutionAutoConfiguration {
builder = builder.allowCoreThreadTimeOut(pool.isAllowCoreThreadTimeout()); builder = builder.allowCoreThreadTimeOut(pool.isAllowCoreThreadTimeout());
builder = builder.keepAlive(pool.getKeepAlive()); builder = builder.keepAlive(pool.getKeepAlive());
builder = builder.threadNamePrefix(this.properties.getThreadNamePrefix()); builder = builder.threadNamePrefix(this.properties.getThreadNamePrefix());
builder = builder.customizers(this.taskExecutorCustomizers); builder = builder.customizers(this.taskExecutorCustomizers.orderedStream()::iterator);
builder = builder.taskDecorator(this.taskDecorator.getIfUnique()); builder = builder.taskDecorator(this.taskDecorator.getIfUnique());
return builder; return builder;
} }

Loading…
Cancel
Save