OptionalintervalOptionallimitThe maximum number of pollable responses before returning the last response.
When retry is also enabled, the limit applies per retry attempt, not overall.
A retry restarts polling from the first request with a fresh counter, so the
worst case is (retries + 1) × limit requests. The default timeout is
sized for that worst case, and an explicit timeout covers all of them.
OptionalshouldDecide whether to poll again. Called for every successful response, and
its return value replaces the built-in check (statusCodes).
context.defaultShouldPoll holds the built-in decision, so return it to
keep the default behavior. Returning false stops polling and returns the
current response. limit still applies.
The context of the poll
OptionalstatusThe HTTP status codes that should trigger polling. Status codes in the range 200-299.
The delay between polling attempts in milliseconds.