pub fn checkpoint() -> Result<()>
Checks inherited cancellation and the earliest deadline at a cooperative boundary.