On 29/08/2025 15:24, David Alayachew wrote:
Hello @loom-dev <mailto:[email protected]>,

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

Reply via email to