summaryrefslogtreecommitdiff
path: root/exercises/088_async4.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-04-06 20:56:29 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-04-06 20:56:29 +0200
commit3574fd3ae037f34510c6bb6657332b57447ac5b1 (patch)
treecb359b2d95b245aba70e5636fd3ea5f4648a4fd6 /exercises/088_async4.zig
parent966c1f83af33f6b3f2312a2e4613247097f9ae38 (diff)
parent882c6aa0ab174f0d7a28a7804531611fcef98476 (diff)
Merge pull request 'Improvements for async-io' (#388) from async-improvements into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/388
Diffstat (limited to 'exercises/088_async4.zig')
-rw-r--r--exercises/088_async4.zig4
1 files changed, 2 insertions, 2 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", .{});
}