This commit is contained in:
Moritz Halbritter 2023-07-27 09:14:04 +02:00
parent b0615dd311
commit 39f6b85039

View File

@ -50,7 +50,7 @@ class TaskExecutorConfigurations {
ObjectProvider<TaskDecorator> taskDecorator) {
SimpleAsyncTaskExecutor executor = new SimpleAsyncTaskExecutor(properties.getThreadNamePrefix());
executor.setVirtualThreads(true);
executor.setTaskDecorator(taskDecorator.getIfUnique());
taskDecorator.ifUnique(executor::setTaskDecorator);
return executor;
}