FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clarify that PollingFuture timeout is in seconds. (#4201) · googleapis/google-cloud-python@915238d · GitHub

Commit 915238d

Browse files
authored andcommitted
Clarify that PollingFuture timeout is in seconds. (#4201)
1 parent 7edad2d commit 915238d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎core/google/api/core/future/polling.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def _blocking_poll(self, timeout=None):
7070
"""Poll and wait for the Future to be resolved.
7171
7272
Args:
73-
timeout (int): How long to wait for the operation to complete.
73+
timeout (int):
74+
How long (in seconds) to wait for the operation to complete.
7475
If None, wait indefinitely.
7576
"""
7677
if self._result_set:
@@ -91,7 +92,8 @@ def result(self, timeout=None):
9192
"""Get the result of the operation, blocking if necessary.
9293
9394
Args:
94-
timeout (int): How long to wait for the operation to complete.
95+
timeout (int):
96+
How long (in seconds) to wait for the operation to complete.
9597
If None, wait indefinitely.
9698
9799
Returns:

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL