From de4b2d679f1821a3f0059264abb02da5c4edac6c Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Mon, 31 Jul 2023 14:16:35 +0200 Subject: [PATCH] Add documentation for SimpleAsyncTaskExecutorBuilder See gh-35711 --- .../docs/asciidoc/features/task-execution-and-scheduling.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc index 6126919354f..dadb185ffc0 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc @@ -49,4 +49,5 @@ The thread pool uses one thread by default and its settings can be fine-tuned us size: 2 ---- -Both a `ThreadPoolTaskExecutorBuilder` bean and a `TaskSchedulerBuilder` bean are made available in the context if a custom executor or scheduler needs to be created. +A `ThreadPoolTaskExecutorBuilder` bean, a `SimpleAsyncTaskExecutorBuilder` bean and a `TaskSchedulerBuilder` bean are made available in the context if a custom executor or scheduler needs to be created. +The `SimpleAsyncTaskExecutorBuilder` is auto-configured to use virtual threads if they are enabled (using Java 21+ and configprop:spring.threads.virtual.enabled[] set to `true`).