Changes to JEP 453
Attila Kelemen
attila.kelemen85 at gmail.com
Fri May 19 18:19:59 UTC 2023
Rob Bygrave <robin.bygrave at gmail.com> ezt írta (időpont: 2023. máj.
19., P, 2:18):
>
> > all Concurrent Tasks should be Structured
>
> That was my thought too, there isn't a "UnstructuredTaskScope" per se [and I don't think there will be one in the future?] ... so the "Structured" part of StructuredTaskScope can seem unnecessary. It feels like it could be "TaskScope" perhaps?
>
>
There kinda is, it is just called `Executor` / `ExecutorService` which
you still need, because not all concurrent tasks should be structured.
For example, if you have an incoming HTTP request, and you respond to
that by starting a task asynchronously and telling your client that
you have started the task, then you have to break out of the
structure. So, I think calling it simply `TaskScope` is too generic,
besides name collision with the JDK is awful, and such generic names
could easily be relatively common.
More information about the loom-dev
mailing list