aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-26 19:28:51 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-26 19:58:56 -0800
commit2fb46b0ed959fcdf5a47f08bd48c99a8e57931de (patch)
tree9907631ccd22a5b24ee587b584acef6c3a9d6b3e /lib/std
parente08837b0fe2cf4ef470d8416abcc6db7573d473e (diff)
downloadzig-2fb46b0ed959fcdf5a47f08bd48c99a8e57931de.tar.gz
zig-2fb46b0ed959fcdf5a47f08bd48c99a8e57931de.zip
std.Progress: recancel in start()
one must never swallow error.Canceled; if you can't handle it, either temporarily disable it for the function, or recancel if you catch it.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/Progress.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Progress.zig b/lib/std/Progress.zig
index 8d21698dac..6baa24d246 100644
--- a/lib/std/Progress.zig
+++ b/lib/std/Progress.zig
@@ -504,7 +504,7 @@ pub fn start(io: Io, options: Options) Node {
} };
} else |err| switch (err) {
error.Canceled => {
- // TODO: recancel here, or block cancelation for this function
+ io.recancel();
return Node.none;
},
}