Synchronous executor interface
Robert Engels
rengels at ix.netcom.com
Sun Aug 6 13:40:08 UTC 2023
Then don’t use an executor and call it directly???
If it’s fully synchronous on the same thread it is a method call.
> On Aug 6, 2023, at 8:19 AM, Attila Kelemen <attila.kelemen85 at gmail.com> wrote:
>
>
> Robert Engels <rengels at ix.netcom.com> ezt írta (időpont: 2023. aug. 6., V, 15:15):
>> Why not use the existing executor services that are not based on virtual threads?
>>
>
> Because the point is that you want to write synchronous code, and I'm not sure what you are recommending exactly, but this is definitely problematic: `executor.submit(() -> whatever).get()` for multiple reasons.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230806/32072cbd/attachment.htm>
More information about the loom-dev
mailing list