You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_ASYNC_RETRY_WARNING="Using the synchronous google.api_core.retry.Retry with asynchronous calls may lead to unexpected results. Please use google.api_core.retry_async.AsyncRetry instead."
87
90
88
91
89
92
defif_exception_type(
@@ -201,7 +204,10 @@ def retry_target(
201
204
202
205
forsleepinsleep_generator:
203
206
try:
204
-
returntarget()
207
+
result=target()
208
+
ifinspect.isawaitable(result):
209
+
warnings.warn(_ASYNC_RETRY_WARNING)
210
+
returnresult
205
211
206
212
# pylint: disable=broad-except
207
213
# This function explicitly must deal with broad exceptions.
0 commit comments