Proofline

Registration can save a retiring wrapper as the original method after teardown removes its registry entry but before it restores the attribute.

thekarannagpal/sdk-python#1Reviewed commit 4447440

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.

Cited code

Checked
Pull request code. The environment was not checked.
Status
Completed
Started
Completed