Proofline

`_AsyncFutureWatch` in `proofline/client.py` completes the read observer even when the caller's `is_set()` returns false.

thekarannagpal/sdk-python#1Reviewed commit d27e21d

Warning · State transition

A later `asyncio.Event.set()` skips that completed future.

Impact

If the caller sets and clears a valid signal before the read returns, the wait can continue instead of returning `STOPPED`.

Recommended action

Keep the cancellation observer armed after an unverified wake, including when another signal arrives before the waiting task resumes.

Cited code

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