Question about Joiner being an @FunctionalInterface
David Alayachew
davidalayachew at gmail.com
Fri Aug 29 14:24:31 UTC 2025
Hello @loom-dev <loom-dev at 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.
Thank you for your time and consideration.
David Alayachew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250829/4a1f34a9/attachment.htm>
More information about the loom-dev
mailing list