added async-io quiz

This commit is contained in:
Chris Boesch
2026-04-03 18:11:00 +02:00
parent 2500936153
commit 1c6487c1e7
25 changed files with 399 additions and 20 deletions

View File

@@ -0,0 +1,11 @@
--- 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}),