Skip to content

Commit

Permalink
Use ordered TaskExecutorCustomizers
Browse files Browse the repository at this point in the history
Use an ordered stream in `TaskExecutionAutoConfiguration` when
obtaining the TaskExecutor customizers.

See gh-18333
  • Loading branch information
ttddyy authored and philwebb committed Sep 29, 2019
1 parent 865a1cd commit bccdf04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public TaskExecutorBuilder taskExecutorBuilder() {
builder = builder.allowCoreThreadTimeOut(pool.isAllowCoreThreadTimeout());
builder = builder.keepAlive(pool.getKeepAlive());
builder = builder.threadNamePrefix(this.properties.getThreadNamePrefix());
builder = builder.customizers(this.taskExecutorCustomizers);
builder = builder.customizers(this.taskExecutorCustomizers.orderedStream()::iterator);
builder = builder.taskDecorator(this.taskDecorator.getIfUnique());
return builder;
}
Expand Down

0 comments on commit bccdf04

Please sign in to comment.