StructuredTaskScope with runnable?

Josiah Noel josiahnoel at gmail.com
Wed Oct 11 20:35:58 UTC 2023


Heya,

This is another minor inconvenience for me, but I've got some async tasks
that don't return a result, and I've been using *Executors.callable()* to
transform the *Runnable*s into *Callable*s. It would be nice if STS had a
method to accept *Runnable*s, that would return a *Subtask<Void>.*

-- 
Cheers, Josiah.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20231011/87edb88f/attachment.htm>


More information about the loom-dev mailing list