summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/087_async4.patch11
-rw-r--r--patches/patches/104_threading.patch6
2 files changed, 14 insertions, 3 deletions
diff --git a/patches/patches/087_async4.patch b/patches/patches/087_async4.patch
new file mode 100644
index 0000000..4883afd
--- /dev/null
+++ b/patches/patches/087_async4.patch
@@ -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", .{});
+ }
diff --git a/patches/patches/104_threading.patch b/patches/patches/104_threading.patch
index eda25fd..e6fe0f4 100644
--- a/patches/patches/104_threading.patch
+++ b/patches/patches/104_threading.patch
@@ -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