How to specify scheduler for virtual threads

Arkadiusz Gasiński jigga at
Tue Nov 19 21:43:05 UTC 2019


Quick question... How do I specify scheduler to be used to schedule virtual
threads after recent changes? The Thread.newLightWeightThread method that
was removed, had an overloaded version that allowed to specify scheduler,
but that's not true for Thread.newThread method. What am I missing? Or is
that functionality not yet ready in the new API?


More information about the loom-dev mailing list