improvements for async-io

This commit is contained in:
Chris Boesch
2026-04-06 16:57:48 +02:00
parent 446da3ce5a
commit 63e506586f
2 changed files with 13 additions and 7 deletions

View File

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