Warning · Concurrency
Impact
The last wait can leave obsolete hooks installed on the event or its condition. An overlapping wait can miss cancellation, or leave obsolete wrappers on the caller’s event after both waits finish.
Recommended action
Make registry retirement and method restoration atomic with respect to registration.