We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b608829 commit 6a60183Copy full SHA for 6a60183
1 file changed
python_anticaptcha/base.py
@@ -68,6 +68,15 @@ def __repr__(self) -> str:
68
return f"<Job task_id={self.task_id}>"
69
70
def join(self, maximum_time: int | None = None, on_check=None) -> None:
71
+ """Poll for task completion, blocking until ready or timeout.
72
+
73
+ :param maximum_time: Maximum seconds to wait (default: ``MAXIMUM_JOIN_TIME``).
74
+ :param on_check: Optional callback invoked after each poll with
75
+ ``(elapsed_time, status)`` where *elapsed_time* is the total seconds
76
+ waited so far and *status* is the last task status string
77
+ (e.g. ``"processing"``).
78
+ :raises AnticaptchaException: If *maximum_time* is exceeded.
79
+ """
80
elapsed_time = 0
81
maximum_time = maximum_time or MAXIMUM_JOIN_TIME
82
while not self.check_is_ready():
0 commit comments