diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-04-06 19:30:56 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-04-06 19:30:56 +0200 |
| commit | 09bae6a70e51fc1313297bc98c67c252e8c32d3e (patch) | |
| tree | 233eeea1daf919c341fe0ae8ac7e586018a02081 /patches | |
| parent | aeeb18931da3c8444fc85db4da43e72a0ad2a46a (diff) | |
improvements for async-io
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/patches/093_async9.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/patches/patches/093_async9.patch b/patches/patches/093_async9.patch index f759921..ebdfce2 100644 --- a/patches/patches/093_async9.patch +++ b/patches/patches/093_async9.patch @@ -1,11 +1,11 @@ ---- exercises/093_async9.zig 2026-04-03 13:44:50.526780809 +0200 -+++ answers/093_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? +--- exercises/093_async9.zig 2026-04-06 19:26:11.388025362 +0200 ++++ answers/093_async9.zig 2026-04-06 19:18:36.242931688 +0200 +@@ -43,7 +43,7 @@ + // Launch with a guaranteed separate unit of concurrency. + // Which Io method guarantees this? // (Hint: unlike io.async, this one can fail!) - var future = try io.???(compute, .{io}); + var future = try io.concurrent(compute, .{io}); + defer _ = future.cancel(io); - print("Main thread continues...\n", .{}); - + // Note: All breaks in this excercise (using sleep) |
