mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
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:
@@ -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;
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user