Proofline

Each backoff wraps the shared event’s current `set` and restores it unconditionally.

thekarannagpal/sdk-python#1Reviewed commit 6c684ea

Serious · Concurrency

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.

Cited code

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