<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">Then don’t use an executor and call it directly???</div><div dir="ltr"><br></div><div dir="ltr">If it’s fully synchronous on the same thread it is a method call. </div><div dir="ltr"><br><blockquote type="cite">On Aug 6, 2023, at 8:19 AM, Attila Kelemen <attila.kelemen85@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr">Robert Engels <<a href="mailto:rengels@ix.netcom.com">rengels@ix.netcom.com</a>> ezt írta (időpont: 2023. aug. 6., V, 15:15):<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Why not use the existing executor services that are not based on virtual threads?<br><br></blockquote><div><br></div><div>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.</div></div></div>
</div></blockquote></body></html>