Consider virtual threads support for ThreadPoolTaskExecutor/ThreadPoolTaskScheduler #42921
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
As seen in spring-projects/spring-framework#33780 (comment), Spring Framework recently added virtual threads support for
ThreadPoolTaskExecutor
/ThreadPoolTaskScheduler
. Java apps are not typically expected to pool virtual threads, but the use case there is about lifecycle management.We should consider whether and how we want to support this use case, considering that:
spring.threads.virtual.enabled=true
enables virtual threads globally and our community expects it to embrace best practicesSimpleAsyncTaskScheduler
/SimpleAsyncTaskExecutor
and makes lots of configuration properties without effect. See the "Doesn't have an effect if virtual threads are enabled." mentions in the application properties docsWe should consider whether we want to support this use case through properties or through the existing customizers only.
The text was updated successfully, but these errors were encountered: