A new build and a new structured concurrency API
Alan Bateman
Alan.Bateman at oracle.com
Thu Nov 18 09:58:49 UTC 2021
On 18/11/2021 09:36, Alex Otenko wrote:
> I still fail to see what you win by not invoking onComplete. I see a
> lot of problems from indeterminism in other similar contexts.
It would be useful for the discussion to outline your example where it
useful to continue to collect results after the executor is shutdown. As
Ron says, the shutdown method in this API is to say that you are done
and no longer interested in any more results. All remaining threads are
interrupted. I read your mail about borrowing a connection but that
sounds like try-finally in the task, nothing to do with notification of
completed task.
-Alan
More information about the loom-dev
mailing list