summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-04-02 10:28:40 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-04-02 10:28:40 +0200
commit3b22bfd898a5ca93df9e07a3f1816f3b0b08137b (patch)
tree6cc1e4dd80d3fb0897b0ab5d7ecb700234df89ff /patches
parente22748d48899d93c6af2684b33688c91c239596c (diff)
revival of the async-io functions
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/089_async6.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/patches/089_async6.patch b/patches/patches/089_async6.patch
new file mode 100644
index 0000000..4ba0b49
--- /dev/null
+++ b/patches/patches/089_async6.patch
@@ -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}),