Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions proofline/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down