diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-04-05 12:42:42 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-04-05 12:42:42 +0200 |
| commit | 2acf19277544ded4f56b525240be856094085009 (patch) | |
| tree | 758441fb94278a4b55e58707740f0e935e84abf8 /patches | |
| parent | 58f8df66d57fec4b0d8d69df7ac26624194b86ad (diff) | |
improvements for async-io
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/patches/086_async2.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/patches/patches/086_async2.patch b/patches/patches/086_async2.patch index 9a672a6..1738089 100644 --- a/patches/patches/086_async2.patch +++ b/patches/patches/086_async2.patch @@ -1,11 +1,11 @@ ---- exercises/086_async2.zig 2026-04-03 19:42:15.274532915 +0200 -+++ answers/086_async2.zig 2026-04-03 21:30:18.180019206 +0200 -@@ -38,7 +38,7 @@ +--- exercises/086_async2.zig 2026-04-05 12:41:11.350626443 +0200 ++++ answers/086_async2.zig 2026-04-05 12:42:00.879791167 +0200 +@@ -44,7 +44,7 @@ // Now collect the result. What method on Future gives us - // the value, blocking if it isn't ready yet? + // the value, blocking until it's ready? - const answer = future.???(io); + const answer = future.await(io); - std.debug.print("The answer is: {}\n", .{answer}); + print("The answer is: {}\n", .{answer}); } |
