mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
revival of the async-io functions
This commit is contained in:
11
patches/patches/089_async6.patch
Normal file
11
patches/patches/089_async6.patch
Normal 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}),
|
||||
Reference in New Issue
Block a user