diff --git a/proofline/client.py b/proofline/client.py index 22f8afaf..fd911d7c 100644 --- a/proofline/client.py +++ b/proofline/client.py @@ -962,6 +962,14 @@ async def wait_for_review( timeout: float = 300, head_commit_sha: str | None = None, ) -> ReviewOutcome: + """Wait for recorded review completion or return TIMED_OUT. + + The same contract as the sync `wait_for_review`: reads back off from + 5 to 60 seconds apart, a read that would fall in the last five seconds + moves to five seconds before the deadline, and head_commit_sha holds + the outcome to that commit. + """ + if not math.isfinite(timeout) or timeout < 0: raise ValueError("The review timeout must be a finite nonnegative number of seconds.") _head_commit(head_commit_sha)