Questions about QCon'19 London talk
Alan Bateman
Alan.Bateman at oracle.com
Fri Dec 6 08:14:55 UTC 2019
On 05/12/2019 16:14, Ron Pressler wrote:
> :
>
> Well, for one, the entire structured concurrency API is very much in flux,
> so much so that it doesn’t exist in the current prototype at all. But in the
> API presented, the implicit call to close() in the TWR block waits for the
> completion of all threads; it does not attempt to cancel them.
>
Right, and I think these examples were from early 2019, a latter
revision of that prototype could optionally cancel all remaining fibers
at close to avoid the explicit cancel. It's not too different to an
ExecutorService today where you use shutdownNow before waiting for it to
terminate.
-Alan
More information about the loom-dev
mailing list