Proofline

Backoff schedules a timer before starting `Event.wait()`.

thekarannagpal/sdk-python#1Reviewed commit 7533b73

Warning · Resource lifecycle

An unset event bound to another loop raises `RuntimeError` before timer cleanup is active.

Impact

The call fails immediately, but the loop retains the timer callback and its future until the backoff cutoff.

Recommended action

Wrap waiter startup and the subsequent wait in an outer `try/finally` that always cancels the timer.

Cited code

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