Excited to see it! I want to try it out as soon as possible. Structured Concurrency has grown to be one of my most anticipated features for "new" Java, so please post info, even if it's just an unfinished JEP Draft or Javadoc, as soon as possible!
On Sat, Aug 30, 2025 at 10:49 AM Alan Bateman <alan.bate...@oracle.com> wrote: > On 29/08/2025 15:24, David Alayachew wrote: > > Hello @loom-dev <loom-dev@openjdk.org>, > > 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. > > 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. > > -Alan > >