Proofline

`_SyncSetWatch` in `proofline/client.py` records cancellation before calling the original `set()`.

thekarannagpal/sdk-python#1Reviewed commit 63c2476

Warning · Concurrency

If the setter blocks before signaling, the waiting thread can consume that timestamp while the event is still unset.

Impact

`wait_for_review` in `proofline/client.py` can return `STOPPED` even if the setter later raises without signaling.

Recommended action

Record the timestamp only when the event is observed to signal, not when `set()` starts.

Cited code

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