How to specify scheduler for virtual threads

Arkadiusz Gasiński jigga at
Tue Nov 19 22:38:20 UTC 2019

Never mind - just noticed the Thread.Builder interface...


On Tue, Nov 19, 2019 at 10:43 PM Arkadiusz Gasiński <jigga at> wrote:

> Hi,
> 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?
> Thanks,
> Arek

More information about the loom-dev mailing list