summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-04-03 14:28:19 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-04-03 14:28:19 +0200
commit25009361533be5e45cf59d9840edf5d13cfb8d6d (patch)
tree0bf1f331b8162d1b378f0c3c9c291eddc9c0fba3 /build.zig
parent903c33cd0a6dfdc050e8575f64aa60a9a09001e0 (diff)
new async exercise
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig15
1 files changed, 11 insertions, 4 deletions
diff --git a/build.zig b/build.zig
index 5e5d3de..b9aaac3 100644
--- a/build.zig
+++ b/build.zig
@@ -1161,13 +1161,20 @@ const exercises = [_]Exercise{
},
.{
.main_file = "092_async9.zig",
- .output = "",
- .skip = true,
+ .output =
+ \\Main thread continues...
+ \\Computing on a separate thread!
+ \\Main thread done waiting.
+ \\Result: 123
+ , // pay attention to the comma
},
.{
.main_file = "093_async10.zig",
- .output = "",
- .skip = true,
+ .output =
+ \\Starting critical section...
+ \\Critical section completed safely.
+ \\Task result: All data saved.
+ , // pay attention to the comma
},
.{
.main_file = "094_async_quiz.zig",