summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-04-06 12:22:41 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-04-06 12:22:41 +0200
commit446da3ce5a1d5ea12bffe5a8b12eaad94e8afeee (patch)
tree39916784d4d7d1c06387b69da865c412eedf7736
parent5e474ea5d1483cdca15c3b29295f0886950e4d94 (diff)
improvements for async-io
-rw-r--r--exercises/088_async4.zig4
-rw-r--r--patches/patches/088_async4.patch6
2 files changed, 5 insertions, 5 deletions
diff --git a/exercises/088_async4.zig b/exercises/088_async4.zig
index 50829fc..8298ca1 100644
--- a/exercises/088_async4.zig
+++ b/exercises/088_async4.zig
@@ -14,7 +14,7 @@
// * Once you call group.async(), you MUST eventually call
// group.await() or group.cancel() to release resources.
// * group.cancel() requests cancellation on ALL members,
-// then waits for them to finish.
+// then blocks until they all finish.
//
// Unlike Future, Group tasks don't return values to the caller.
// They're ideal for parallel work that communicates through
@@ -38,7 +38,7 @@ pub fn main(init: std.process.Init) !void {
// Wait for all tasks to finish.
// What Group method blocks until all tasks complete?
- try group.???
+ try group.???(io);
print("All tasks finished!\n", .{});
}
diff --git a/patches/patches/088_async4.patch b/patches/patches/088_async4.patch
index 1faf30e..6cf549f 100644
--- a/patches/patches/088_async4.patch
+++ b/patches/patches/088_async4.patch
@@ -1,10 +1,10 @@
---- exercises/088_async4.zig 2026-04-01 23:17:31.066443941 +0200
-+++ answers/088_async4.zig 2026-04-01 23:17:39.251612131 +0200
+--- exercises/088_async4.zig 2026-04-06 12:22:06.643385622 +0200
++++ answers/088_async4.zig 2026-04-06 12:22:11.820491035 +0200
@@ -38,7 +38,7 @@
// Wait for all tasks to finish.
// What Group method blocks until all tasks complete?
-- try group.???
+- try group.???(io);
+ try group.await(io);
print("All tasks finished!\n", .{});