my ziglings
0

Configure Feed

Select the types of activity you want to include in your feed.

improvements for async-io

Chris Boesch (Apr 6, 2026, 12:22 PM +0200) 446da3ce 5e474ea5

+5 -5
+2 -2
exercises/088_async4.zig
··· 14 14 // * Once you call group.async(), you MUST eventually call 15 15 // group.await() or group.cancel() to release resources. 16 16 // * group.cancel() requests cancellation on ALL members, 17 - // then waits for them to finish. 17 + // then blocks until they all finish. 18 18 // 19 19 // Unlike Future, Group tasks don't return values to the caller. 20 20 // They're ideal for parallel work that communicates through ··· 38 38 39 39 // Wait for all tasks to finish. 40 40 // What Group method blocks until all tasks complete? 41 - try group.??? 41 + try group.???(io); 42 42 43 43 print("All tasks finished!\n", .{}); 44 44 }
+3 -3
patches/patches/088_async4.patch
··· 1 - --- exercises/088_async4.zig 2026-04-01 23:17:31.066443941 +0200 2 - +++ answers/088_async4.zig 2026-04-01 23:17:39.251612131 +0200 1 + --- exercises/088_async4.zig 2026-04-06 12:22:06.643385622 +0200 2 + +++ answers/088_async4.zig 2026-04-06 12:22:11.820491035 +0200 3 3 @@ -38,7 +38,7 @@ 4 4 5 5 // Wait for all tasks to finish. 6 6 // What Group method blocks until all tasks complete? 7 - - try group.??? 7 + - try group.???(io); 8 8 + try group.await(io); 9 9 10 10 print("All tasks finished!\n", .{});