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.
This commit is contained in:
Andrew Kelley
2025-12-26 19:28:51 -08:00
parent e08837b0fe
commit 2fb46b0ed9
+1 -1
View File
@@ -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;
},
}