Proofline

Two loops can both pass the foreign-loop check in `_watch_async_waiter` (`proofline/client.py`) before either appends its future to the same unbound event.

thekarannagpal/sdk-python#1Reviewed commit 5b3abb4

Warning · Concurrency

Impact

During backoff, `set()` can complete a foreign-loop future on the wrong thread and raise `RuntimeError` with asyncio debug checks enabled.

Recommended action

Hold the same lock across the foreign-loop check, waiter insertion, and waiter removal.

Cited code

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