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.
1 files changed, 1 insertions(+), 1 deletions(-)
lib
std
lib/std/Progress.zig+1-1
| ... | ... | @@ -504,7 +504,7 @@ pub fn start(io: Io, options: Options) Node { |
| 504 | 504 | } }; |
| 505 | 505 | } else |err| switch (err) { |
| 506 | 506 | error.Canceled => { |
| 507 | | // TODO: recancel here, or block cancelation for this function |
| 507 | io.recancel(); |
| 508 | 508 | return Node.none; |
| 509 | 509 | }, |
| 510 | 510 | } |