Partial Results From a Timeout in Structured Concurrency
robert engels
rengels at ix.netcom.com
Sun Aug 24 17:20:06 UTC 2025
Thanks for linking to the SO question. Honestly, all of those look ugly to me. I can’t believe a pretty standard use case requires that much code - it really hides the flow - which I feel is against the primary purpose of structured concurrency - to make this more obvious and reliable - not less.
> On Aug 24, 2025, at 8:11 AM, Atakan Serin <serinatakan at gmail.com> wrote:
>
> Hi,
>
> One experience using Structured Concurrency:
>
> When there is a timeout, even the succeded subtasks throws illegal state exception, I guess due to the fact that owner is not joined. This was not so convenient for me and had to find work arounds:
> https://stackoverflow.com/questions/79744109/how-to-get-partial-results-with-java-structured-concurrency-in-a-timeout-scenari
>
> Best regards,
> Atakan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250824/4d32c4ef/attachment-0001.htm>
More information about the loom-dev
mailing list