• Preparing search index...
  • The search index is not available
@shopify/cli-kit
  • @shopify/cli-kit
  • node/api/rest-api-throttler
  • delayAwareRetry

Function delayAwareRetry

  • delayAwareRetry(
        response: RestResponse,
        operation: () => Promise<RestResponse>,
    ): Promise<RestResponse>
  • Retries an operation after a delay specified in the response headers.

    Parameters

    • response: RestResponse

      The response object.

    • operation: () => Promise<RestResponse>

      The operation to retry.

    Returns Promise<RestResponse>

    • The response of the operation.
    • Defined in packages/cli-kit/src/public/node/api/rest-api-throttler.ts:167

Settings

Member Visibility
@shopify/cli-kit
  • Loading...

Generated using TypeDoc