summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-04-03 13:46:35 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-04-03 13:46:35 +0200
commit903c33cd0a6dfdc050e8575f64aa60a9a09001e0 (patch)
treea457c4dec2c4930b0770979cbc0b75da3e4dfcfd /patches
parente0259f43a726f61da14686de802021fcdb9aacd0 (diff)
new async exercise
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/092_async9.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/patches/092_async9.patch b/patches/patches/092_async9.patch
new file mode 100644
index 0000000..b7c8de9
--- /dev/null
+++ b/patches/patches/092_async9.patch
@@ -0,0 +1,11 @@
+--- exercises/092_async9.zig 2026-04-03 13:44:50.526780809 +0200
++++ answers/092_async9.zig 2026-04-03 13:44:54.957870294 +0200
+@@ -36,7 +36,7 @@
+ // Launch with a guaranteed separate thread.
+ // Which Io method guarantees true concurrency?
+ // (Hint: unlike io.async, this one can fail!)
+- var future = try io.???(compute, .{io});
++ var future = try io.concurrent(compute, .{io});
+
+ print("Main thread continues...\n", .{});
+