Virtual threads and executor ?

Remi Forax forax at univ-mlv.fr
Thu Nov 18 19:22:42 UTC 2021


In the latest refresh of loom, a user can not set the executor anymore.
That's an issue because existing codes tend to use an executor so the refactoring to introduce virtual threads is now harder.
The other issue I have is that i can not create a virtual thread on a non-daemon thread anymore, so i have a code of a proxy that terminates too early when using virtual threads.

What is the rational behind not letting a user to specify an Executor when creating a virtual thread ?

regards,
Rémi


More information about the loom-dev mailing list