ExecutorService.awaitTermination and virtual threads

Alan Bateman Alan.Bateman at oracle.com
Sun Dec 15 07:03:11 UTC 2019


On 09/12/2019 18:34, Kasper Nielsen wrote:
> Would it make sense to have this instead
>
> ThreadFactory.virtual()
> ThreadFactory.virtual(Executor scheduler)
>
> I do think .virtual(scheduler) reads a bit clearer than
> .virtual().scheduler(scheduler)
>
Yes, that would be nicer - thanks!

-Alan


More information about the loom-dev mailing list