<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Sounds good, thanks Pavel!</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature" class="elementToProof" style="color: inherit;">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers,<br>
–</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>Viktor Klang</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Software Architect, Java Platform Group<br>
Oracle</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> concurrency-discuss <concurrency-discuss-retn@openjdk.org> on behalf of Pavel Rappo <pavel.rappo@gmail.com><br>
<b>Sent:</b> Friday, 2 May 2025 19:46<br>
<b>To:</b> Alan Bateman <alan.bateman@oracle.com><br>
<b>Cc:</b> concurrency-discuss@openjdk.org <concurrency-discuss@openjdk.org><br>
<b>Subject:</b> Re: Define "enabled" in ScheduledExecutorService</font>
<div> </div>
</div>
<div>
<div dir="auto">Thanks, Alan. That sounds like a plan. Shall I create a corresponding JBS issue?</div>
<div><br>
<div class="x_gmail_quote x_gmail_quote_container">
<div dir="ltr" class="x_gmail_attr">On Fri 2 May 2025 at 18:04, Alan Bateman <<a href="mailto:alan.bateman@oracle.com">alan.bateman@oracle.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<u></u>
<div dir="auto">On 02/05/2025 16:17, Pavel Rappo wrote:I've recently re-read documentation for ScheduledExecutorService. I<br>
<blockquote type="cite">
<pre dir="auto">I've recently re-read documentation for ScheduledExecutorService. I
noticed that the documentation uses the term "enabled", but does not
define it. The semantics of the term feels almost intuitive, but not
quite.
To check my intuitions, I searched through the package documentation
and source comments. I found usages of "enabled" in similar context of
the time-scheduled task execution. Some of those usages are
descriptions that are close to a proper definition. However, those
descriptions are scattered through implementations of
SchedulledExecutorService.
I wonder if it makes sense to properly define "enable"/"enabled" in
SchedulledExecutorService.
</pre>
</blockquote>
As it happens, this came up recently when updating ForkJoinPool to implement ScheduledExecutorService . FJP class description make it clear what "enabled" means. It could potentially copied into SES.</div>
<div><br>
<br>
-Alan<br>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>