Files
ziglings/patches/patches/090_async6.patch
T
2026-04-03 18:11:00 +02:00

12 lines
389 B
Diff

--- exercises/090_async6.zig 2026-04-02 10:25:34.016616118 +0200
+++ answers/090_async6.zig 2026-04-02 10:27:48.827144051 +0200
@@ -47,7 +47,7 @@
// Wait for the first finisher.
// What Select method returns the first completed result?
- const winner = ???;
+ const winner = try sel.await();
switch (winner) {
.hare => |msg| print("Hare: {s}\n", .{msg}),