pub fn swapCancelProtection(io: Io, new: CancelProtection) CancelProtection io: Ionew: CancelProtection1465
1466
1467pub fn swapCancelProtection(io: Io, new: CancelProtection) CancelProtection {
return io.vtable.swapCancelProtection(io.userdata, new);
}
Updates the current task's cancel protection state (see
CancelProtection).The typical usage for this function is to protect a block of code from cancelation:
For a description of cancelation and cancelation points, see
Future.cancel.