<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">On 07/10/2024 08:59, Mike Hearn wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:A5327469-21C1-4FF1-86AF-5F6C6EA5B7BB@oracle.com">
      <pre class="moz-quote-pre" wrap="">That’s fair enough, but I think there’s still value in a quick rename now, as “thread” is more precise and frees up the word “task” for a later abstraction (if any).

</pre>
    </blockquote>
    StructuredTaskScope [1] is all about tasks splitting into concurrent
    subtasks. Yes, there is a new thread started to execute each subtask
    but the user facing API doesn't deal in Thread objects. We are
    always on the look out for a better name but I don't think renaming
    this to include "Thread" in the name would work.<br>
    <br>
    The interface in your first mail looks more like an Executor in that
    it forks something. Maybe there is useful abstraction hiding but STS
    is not something that you pass around, meaning you aren't going to
    invoke a method in a faraway library with your STS as a parameter.<br>
    <br>
    -Alan<br>
    <br>
    [1]
<a class="moz-txt-link-freetext" href="https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html">https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html</a><br>
  </body>
</html>