Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class Retry.
Retry implementation.
Unlike {@see}, Retry requires an implementor
to supply wait times for each iteration.
Methods
__construct
Parameters
Name
Description
retries
int|null
Maximum number of retries for a failed request.
delayFunction
callable
A function returning an array of format ['seconds' => (int >= 0), 'nanos' => (int >= 0)] specifying how long an operation should pause before retrying. Should accept a single argument of type\Exception`.
retryFunction
callable
[optional] returns bool for whether or not to retry.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-30 UTC."],[],[]]