ScopedValue structured forking/forwarding API

Andrew Haley aph-open at littlepinkcloud.com
Mon Jul 14 10:14:49 UTC 2025


On 13/07/2025 21:34, Robert Engels wrote:
> The whole point of virtual threads is to avoid coroutines / async functions.

I'm not sure that's really true. Continuation-passing style and 
coroutines have their uses even in the presence of virtual threads, as 
do things like generators. I don't much like coloured functions (does 
anyone?) but CPS is more general than vthreads.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the loom-dev mailing list