revival of the async-io functions

This commit is contained in:
Chris Boesch
2026-04-01 23:34:16 +02:00
parent db1fef8b86
commit fcfb0e80a0
5 changed files with 81 additions and 56 deletions

View File

@@ -0,0 +1,11 @@
--- exercises/087_async4.zig 2026-04-01 23:17:31.066443941 +0200
+++ answers/087_async4.zig 2026-04-01 23:17:39.251612131 +0200
@@ -38,7 +38,7 @@
// Wait for all tasks to finish.
// What Group method blocks until all tasks complete?
- try group.???
+ try group.await(io);
print("All tasks finished!\n", .{});
}

View File

@@ -1,6 +1,6 @@
--- exercises/104_threading.zig 2025-11-28 14:17:31.552529679 +0100
+++ answers/104_threading.zig 2025-11-28 14:15:36.823931851 +0100
@@ -97,12 +97,12 @@
--- exercises/104_threading.zig 2026-04-01 23:31:10.073198955 +0200
+++ answers/104_threading.zig 2026-04-01 23:29:51.314585919 +0200
@@ -88,12 +88,12 @@
defer handle.join();
// Second thread