Files
ziglings/patches/patches/088_async5.patch
2026-04-01 23:44:24 +02:00

12 lines
379 B
Diff

--- 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});
}