<!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 20/05/2025 07:53, Remi Forax wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:1774737156.269981711.1747723989533.JavaMail.zimbra@univ-eiffel.fr">
      <pre class="moz-quote-pre" wrap="">Hello,
i've just taken a look to the new StructuredTaskScope API,
i've seen a small improvement that can be done to the API.

There is a method open that takes a joiner and a configuration function (a configuration builder really)

  open(Joiner<? super T, ? extends R> joiner, Function<Configuration, Configuration> configFunction)

In java.util.function, there is already a type for the function that return the same type as the parameter, it's UnaryOperator,
so the signature of open(joiner, configFunction) can be simplified to

   open(Joiner<? super T, ? extends R> joiner, UnaryOperator<Configuration> configFunction)

</pre>
    </blockquote>
    <br>
    Noted.  Nicolai Parlog pointed this out recently too. It wouldn't
    change the intended usage but would make the signature look less
    scary. So the list to look at for the next update.<br>
    <br>
    -Alan<br>
  </body>
</html>