Structured concurrency with runnables?
Remi Forax
forax at univ-mlv.fr
Thu May 11 16:15:16 UTC 2023
> From: "Josiah Noel" <josiahnoel at gmail.com>
> To: "loom-dev" <loom-dev at openjdk.org>
> Sent: Thursday, May 11, 2023 5:53:11 PM
> Subject: Structured concurrency with runnables?
> 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.
Callable<Void> callable = Executors.callable(runnable, null);
regards,
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230511/4c8049bc/attachment.htm>
More information about the loom-dev
mailing list