mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
revival of the async-io functions
This commit is contained in:
11
patches/patches/087_async4.patch
Normal file
11
patches/patches/087_async4.patch
Normal 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", .{});
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user