<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    On 26/07/2023 17:46, Glavo wrote:<br>
    <blockquote type="cite" cite="mid:CAJL5A3k+bu1m551r6uu7qNaq4-Pw2DbQo6a1Q9X4zZKKVf3J5Q@mail.gmail.com">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">Hi,
                    <div><br>
                    </div>
                    <div>There are times when I'm not happy with
                      `Thread.ofVirtual().name(xxx).factory()` and would
                      like more flexibility in naming virtual threads.<br>
                    </div>
                    <div>Therefore, I would like to have an API method
                      like this:<br>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <blockquote style="margin:0px 0px 0px
              40px;border:none;padding:0px">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div>public static Thread
                      startVirtualThread(Runnable task, String name)</div>
                  </div>
                </div>
              </div>
            </blockquote>
            <br>
            <div>Can we provide such an API method?<br>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    It's easy to start a virtual thread with a name if you really want,
    e.g. Thread.ofVirtual().name("duke").start(task);, so I'm curious
    what problem or issue you are running into.<br>
    <br>
    -Alan<br>
    <br>
    <br>
    <br>
  </body>
</html>