mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-04 17:23:44 +02:00
12 lines
389 B
Diff
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}),
|