My experience with Structured Concurrency
Alan Bateman
alan.bateman at oracle.com
Sun Aug 17 17:13:15 UTC 2025
On 16/08/2025 20:23, David Alayachew wrote:
> :
>
> Sure. Let me highlight 5 of them. Let me know if you need more
> examples -- I have about 30+ custom implementations.
Thanks for sharing this selection.
I will guess that #1, #2, and #5 are relatively simpler Joiner
implementations, is there really any benefit to use composition or
inheritance here?
For #4 and #5 then its surprising that there is RPC or split/join in the
onComplete method. The onComplete method is called with the completed
subtask and any exception/error executing onComplete isn't going to
change the subtask status. Is there a reason you've chosen to put that
code there rather than in the subtasks? (for his API then the question
as to "where" to put code is a good discussion as it may not be always
obvious whether to code should execute in the subtask, in the Joiner
handling subtask completion, or in the main task in the processing after
join.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250817/7711e392/attachment.htm>
More information about the loom-dev
mailing list