<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">On 01/08/2025 06:05, David Alayachew
wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAA9v-_P1kTd9RxqieXkfG-DjX60m5Oga--=7LjZ7L3LnUX5O=A@mail.gmail.com">
<div dir="ltr">
<div class="gmail_default" style="font-family:monospace">Hello <a class="gmail_plusreply" id="plusReplyChip-0" href="mailto:loom-dev@openjdk.org" tabindex="-1" moz-do-not-send="true">@loom-dev</a>,</div>
<div class="gmail_default" style="font-family:monospace"><br>
</div>
<div class="gmail_default" style="font-family:monospace">I have
been enjoying the Structured Concurrency JEP's as they have
come, and I am excited to try the JDK 25 variant with all the
new changes with Joiner.</div>
<div class="gmail_default" style="font-family:monospace"><br>
</div>
<div class="gmail_default" style="font-family:monospace">I have
a bikeshed request.</div>
<div class="gmail_default" style="font-family:monospace"><br>
</div>
<div class="gmail_default" style="font-family:monospace">For
Subtask, can we change the method name from exception() to
throwable()? It more accurately describes what is happening.</div>
<br>
</div>
</blockquote>
<br>
In j.u.concurrent there is
CompletableFuture.completeExceptionally(Throwable)/obtrudeException(Throwable),
SubmissionPublisher.closeExceptionally(Throwable),
ForkJoinTask.getException and Future.exceptionNow() returning a
Throwable, and a few more.<br>
<br>
The main use of Subtask::exception will be a custom Joiner's
onComplete implementation where handles the exception or error when
the subtask fails. There is an argument that fork should be void or
just return a Supplier (Subtask extends Supplier) but there hasn't
been enough feedback from real-world usage to help that discussion.<br>
<br>
-Alan<br>
</body>
</html>