<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 29/08/2025 15:24, David Alayachew
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAA9v-_MRkyj7PhdU6WYJi1KuiW5cjV+21Zf93TtioPQEBjJanA@mail.gmail.com">
      
      <div dir="ltr">
        <div class="gmail_default" style="font-family:monospace">Hello <a class="gmail_plusreply" id="plusReplyChip-1" 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
          noticed just recently that StructuredTaskScope.Joiner is
          an @FunctionalInterface. Is that merely a derived trait
          automatically applied by the Javadoc/JDK? Or are there ways to
          make useful Joiners using just the unimplemented result()?
          Only thing I could think of is that it's useful for creating
          mock Joiners in unit tests, that just return some pre-defined
          value. But even that is limited in its utility.</div>
        <br>
      </div>
    </blockquote>
    Thanks for bringing it up. It's a left over from an early iteration.
    We are going to propose some very minor changes for the next update
    and this includes dropping @FI. But yes, it might have some uses now
    with a test Joiner that returns a constant or something fixed but
    it's not very practical without implementing onFork or onComplete.<br>
    <br>
    -Alan<br>
    <br>
  </body>
</html>