On Tue, 25 Mar 2025 19:17:32 GMT, Doug Lea <d...@openjdk.org> wrote:

>> The schedule(Runnable ..) and schedule(Callable ..) methods are a single 
>> sentence in the interface. The ForkJoinPool methods has more to say about 
>> cancellation and shutdown. So while it could inherit, doesn't seem to be 
>> worth it here.
>> 
>> The descriptions in scheduleAtFixedRate and scheduleWithFixedDelay aren't 
>> identity to the interface because there are additional exceptional 
>> completions to list. So I don't think these can inherit.
>
> Agreed. The root cause is that ScheduledExecutorService should have mentioned 
> interactions with shutdown and cancellation, but didn't so both FJP and 
> ScheduledThreadPoolExecutor had to add them (almost identically).

Just to confirm: The current version seems preferable to alternatives

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23702#discussion_r2017249475

Reply via email to