<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Josiah Noel" <josiahnoel@gmail.com><br><b>To: </b>"loom-dev" <loom-dev@openjdk.org><br><b>Sent: </b>Thursday, May 11, 2023 5:53:11 PM<br><b>Subject: </b>Structured concurrency with runnables?<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="auto">Would be nice if there was a variant of fork could take a Runnable. Turning my runnable tasks into Callable is relatively easy, but it's an inconvenience nonetheless.</div></blockquote><div><br></div>Callable<Void> callable = Executors.callable(runnable, null);<div><br></div><div>regards,<br data-mce-bogus="1"></div><div>Rémi<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div></div></body></html>