Files
ziglings/patches/patches/090_async6.patch
2026-04-06 18:50:57 +02:00

12 lines
399 B
Diff

--- exercises/090_async6.zig 2026-04-06 18:49:37.232023422 +0200
+++ answers/090_async6.zig 2026-04-06 18:49:22.189720687 +0200
@@ -52,7 +52,7 @@
// Wait for the first finisher.
// What Select method returns the first completed result?
- const winner = try sel.???();
+ const winner = try sel.await();
switch (winner) {
.hare => |msg| print("Hare: {s}\n", .{msg}),