News for hackers. Stuff that matters.
Re:JEP proposed to target JDK 19: 425: Virtual Threads (Prev... by Spivak on Tuesday May 03, 2022 @12:14AM (#31244532)
Await and explicit yielding do nothing as soon as you want to actually run multiple tasks at the same time in parallel instead of sequentially but interleaved.
Re:JEP proposed to target JDK 19: 425: Virtual Threads (Prev... by jayd16 on Tuesday May 03, 2022 @10:49AM (#31249051)
You can just start the tasks and then await all? At least in C# it also provides a clear system on how to switch scheduling contexts at an await.