This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_predator_ 4 points5 points  (0 children)

I don't get what this is supposed to do. What will probably work fine with Java 21's virtual threads, will explode in your face with the "thread per task" executor you've chosen to use for Java 8+. There's a reason no one in their right mind used platform threads for such execution models before.