<div dir="ltr">Just out of curiosity: why was a static where() method chosen? An instance method seems more natural:<div><br></div><div>PRINCIPAL.where(principal).run(...)</div><div>vs.</div><div>ExtentLocal.where(PRINCIPAL, principal).run()</div><div><br></div><div>Also, a couple of notes regarding Javadoc:</div><div><ol><li>Two methods runWithBinding() and callWithBinding() are mentioned in the description. But ExtentLocal doesn't have such methods. It only has three overloads of where().</li><li>The code example doesn't use a code snippet. It uses the old HTML formatting.</li></ol></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 12, 2022 at 6:18 AM <<a href="mailto:mark.reinhold@oracle.com">mark.reinhold@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://openjdk.org/jeps/429" rel="noreferrer" target="_blank">https://openjdk.org/jeps/429</a><br>
<br>
Summary: Introduce extent-local variables, which enable the sharing<br>
of immutable data within and across threads. They are preferred to<br>
thread-local variables, especially when using large numbers of virtual<br>
threads. This is an incubating API.<br>
<br>
- Mark<br>
</blockquote></div>