revival of the async-io functions

This commit is contained in:
Chris Boesch
2026-04-02 10:28:40 +02:00
parent e22748d488
commit 3b22bfd898
2 changed files with 67 additions and 39 deletions

View File

@@ -0,0 +1,11 @@
--- exercises/089_async6.zig 2026-04-02 10:25:34.016616118 +0200
+++ answers/089_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}),