Warning · Doc drift
Impact
With `timeout=0`, an initially unset event set during validation yields `STOPPED` instead of `TIMED_OUT`.
Recommended action
Start the deadline at entry and apply it to the initial cancellation check, distinguishing an already-set event from a signal delivered during validation.