Proofline

The backoff checks the clock when the waiter resumes, discarding a cancellation signal that woke it before the deadline.

thekarannagpal/sdk-python#1Reviewed commit 473696c

Warning · Concurrency

Impact

If the caller sets and clears the event during the final backoff and the waiter resumes late, polling returns `TIMED_OUT` instead of `STOPPED`.

Recommended action

Latch the signal at delivery and compare its delivery time with the deadline, not the waiter’s resumption time.

Cited code

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