revival of the async-io functions

This commit is contained in:
Chris Boesch
2026-04-01 23:44:24 +02:00
parent fcfb0e80a0
commit e22748d488
4 changed files with 65 additions and 38 deletions

View File

@@ -0,0 +1,11 @@
--- exercises/088_async5.zig 2026-04-01 23:40:40.505855238 +0200
+++ answers/088_async5.zig 2026-04-01 23:40:10.176236971 +0200
@@ -40,7 +40,7 @@
// We don't want to wait 10 seconds!
// Which Future method requests cancellation AND returns the result?
- const result = ???;
+ const result = future.cancel(io);
print("Task returned: {}\n", .{result});
}