mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
improvements for async-io
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user