Synchronous executor interface

robert engels rengels at ix.netcom.com
Mon Aug 7 23:52:20 UTC 2023


But why not? Future is pervasive - and then the user can easily switch between synchronous executors and async executors with no user code change - and 0 changes to the JDK.

> On Aug 7, 2023, at 3:32 PM, Attila Kelemen <attila.kelemen85 at gmail.com> wrote:
> 
> Robert Engels <rengels at ix.netcom.com <mailto:rengels at ix.netcom.com>> ezt írta (időpont: 2023. aug. 7., H, 20:58):
> I think by the time you cover all of the cases in the api - (eg interrupted/other exception) you are going to end up with the Future/Executor interface anyway. 
> 
> Sadly, I kinda agree with the part that the exceptions are a considerable issue for the interface, especially the most awkward `InterruptedException` (though ending up with Future is a bit of an exaggeration).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230807/deb3d6fc/attachment.htm>


More information about the loom-dev mailing list