new async exercise

This commit is contained in:
Chris Boesch
2026-04-03 13:46:35 +02:00
parent e0259f43a7
commit 903c33cd0a
2 changed files with 68 additions and 0 deletions

View File

@@ -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", .{});