Provide first-class virtual thread option on ThreadPoolTaskExecutor
/ThreadPoolTaskScheduler
#33807
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
As mentioned in ##33780 (comment), there are scenarios where a
ThreadPoolTaskExecutor
orThreadPoolTaskScheduler
benefits from being configured with a factory for virtual threads. In contrast toSimpleAsyncTaskExecutor
/SimpleAsyncTaskScheduler
, this is naturally integrated with Spring's lifecycle management for stopping and restarting execution threads, including an early stop signal for a graceful shutdown arrangement. For 6.2, we can provide first-class virtual thread support through asetVirtualThreads(true)
flag onThreadPoolTaskExecutor
andThreadPoolTaskScheduler
.The text was updated successfully, but these errors were encountered: