Affects: 6.1.0-M5
Similar to ThreadPoolTaskExecutor but for Virtual Threads.
I have assembled a quick prototype internally delegating to SimpleAsyncTaskExecutor, available at https://github.com/apache/syncope/blob/13e5538116369da9ca3ef55ff5f93fb004a93847/core/spring/src/main/java/org/apache/syncope/core/spring/task/VirtualThreadPoolTaskExecutor.java
Comment From: bclozel
I'm not sure I understand. Can you elaborate what's the goal of this contract, especially what's missing from the SimpleAsyncTaskExecutor
and how the proposed implementation fills that void?
Virtual Threads are not supposed to be pooled, so the name itself is quite problematic.
Comment From: ilgrosso
Can you elaborate what's the goal of this contract?
Sorry, I could have explained that before.
The purpose is to provide an almost drop-in replacement for existing code using ThreadPoolTaskExecutor
.
Comment From: bclozel
Thanks for the explanation. We considered this at the time when we updated the SimpleAsyncTaskExecutor
but decided against it for the reasons stated above. Thanks for the suggestion!
Comment From: ilgrosso
Thank you for feedback.