Structured Concurrency vs the Streams API
Ron Pressler
ron.pressler at oracle.com
Fri May 6 10:09:46 UTC 2022
Hi.
Parallel streams are indeed structured, but they’re (currently) focused on pure processing and data parallelism, rather than “concurrency,” which often involves a lot of I/O, failure handling, and cancellation.
It is also true that the Stream API could be modified to implement some flavour of structued concurrency, and it is an idea that we’re thinking about.
— Ron
> On 6 May 2022, at 09:53, Arkadiusz Gasiński <jigga at jigga.pl> wrote:
>
> Hi all,
>
> Just a random thought of mine that I'd like loom-dev to comment on.
>
> Do you guys think it is a valid claim to call the (parallel) stream API an
> implementation of the Structured Concurrency paradigm?
>
> The more I think about it the more I'm convinced that this is indeed the
> case, but would like to hear some more opinions.
>
> Thanks,
> Arek
More information about the loom-dev
mailing list