Skip to content

Commit

Permalink
Add docs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lidizheng committed Apr 28, 2020
1 parent ae80760 commit 4589485
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions docs/retry.rst
Expand Up @@ -4,3 +4,10 @@ Retry
.. automodule:: google.api_core.retry
:members:
:show-inheritance:

Retry in AsyncIO
----------------

.. automodule:: google.api_core.retry_async
:members:
:show-inheritance:
6 changes: 3 additions & 3 deletions google/api_core/retry_async.py
Expand Up @@ -222,7 +222,7 @@ def with_deadline(self, deadline):
deadline (float): How long to keep retrying.
Returns:
Retry: A new retry instance with the given deadline.
AsyncRetry: A new retry instance with the given deadline.
"""
return AsyncRetry(
predicate=self._predicate,
Expand All @@ -241,7 +241,7 @@ def with_predicate(self, predicate):
``True`` if the given exception is retryable.
Returns:
Retry: A new retry instance with the given predicate.
AsyncRetry: A new retry instance with the given predicate.
"""
return AsyncRetry(
predicate=predicate,
Expand All @@ -262,7 +262,7 @@ def with_delay(self, initial=None, maximum=None, multiplier=None):
multiplier (float): The multiplier applied to the delay.
Returns:
Retry: A new retry instance with the given predicate.
AsyncRetry: A new retry instance with the given predicate.
"""
return AsyncRetry(
predicate=self._predicate,
Expand Down

0 comments on commit 4589485

Please sign in to comment.