summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-04-01 23:44:24 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-04-01 23:44:24 +0200
commite22748d48899d93c6af2684b33688c91c239596c (patch)
tree29dfd7ce970dcdc988e91ebd108128445c408a33 /patches
parentfcfb0e80a039d8283f6a298ed67a26c23e3a560a (diff)
revival of the async-io functions
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/088_async5.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/patches/088_async5.patch b/patches/patches/088_async5.patch
new file mode 100644
index 0000000..d88e820
--- /dev/null
+++ b/patches/patches/088_async5.patch
@@ -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});
+ }