Verse Language

4 Bogdanp 1 6/11/2025, 4:36:16 PM dev.epicgames.com ↗

Comments (1)

tikotus · 23h ago
I find the async constructs in Verse the most interesting. This is something really rare: race cancels the remaining tasks.

Usually you use race (or WhenAny in C#) to start a group of parallel tasks, and it finishes when the first task returns. But what happens to the remaining tasks? At least in gamedev, in most of the cases I want to cancel them. To do this requires quite the ritual in most languages. For example in C# you create a new cts, cancel it aftet the first task finishes, remember to check if the task finished due to an exception, dispose the cts, and then continue doing things with the result.

Ceu also has a similar construct.