When the current task is interrupted during std.debug.print, the cancellation is forever lost and the task becomes uncancelable.
The code should be updated to enable cancel protection while printing. This is already correctly done in std.log.defaultLog.