[External] : Re: Structured Concurrency API ?

Alex Otenko oleksandr.otenko at gmail.com
Mon Apr 11 18:19:53 UTC 2022


Usually I use that argument to start thinking along the lines of "what if
it is bigger than you think", rather than actually infinite.

(For any N as big as you choose to handle, N+1 exists, and you are not
prepared to handle it)

Ok, the stream is infinite, you filter on predicate, then limit to produce
1 - does this mean it will use just 1 CPU to produce the values? If that is
so, I am surprised.

Alex

On Mon, 11 Apr 2022, 18:18 Ron Pressler, <ron.pressler at oracle.com> wrote:

>
> > On 11 Apr 2022, at 15:57, Alex Otenko <oleksandr.otenko at gmail.com>
> wrote:
> >
> > ...for finite Streams
> >
> >
> > Alex
>
> Obviously, as many threads as _consumed_ items, which are always finite
> regardless of the finiteness of the source.


More information about the loom-dev mailing list