Start named virtual thread

Glavo zjx001202 at gmail.com
Wed Jul 26 16:46:10 UTC 2023


Hi,

There are times when I'm not happy with
`Thread.ofVirtual().name(xxx).factory()` and would like more flexibility in
naming virtual threads.
Therefore, I would like to have an API method like this:

public static Thread startVirtualThread(Runnable task, String name)


Can we provide such an API method?

Glavo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230727/ad0be7ca/attachment.htm>


More information about the loom-dev mailing list