Serious · Concurrency
Each backoff wraps the shared event’s current `set` and restores it unconditionally.
If the first backoff exits first, it removes the second wrapper, and the second backoff later reinstalls the first.
Impact
The caller’s event retains a completed wait’s wrapper, and the remaining wait can miss a timely cancellation.
Recommended action
Track signal delivery without replacing the caller’s `set`, or coordinate wrapper installation and restoration per event.