p-retry-extended
If calling input returns a rejected promise, input is called again until the max retries are reached, it then rejects with the last rejection reason.
Official Documentation ↗v6.0. Check the official docs for the latest API surface.Installation
npm install p-retrypnpm add p-retryyarn add p-retryMethods
No methods match this filter.
Overview
If calling input returns a rejected promise, input is called again until the max retries are reached, it then rejects with the last rejection reason.
API reference status
This page lists only entry points that appear verbatim in the official README examples: async, pRetry, fetch, AbortController. Parameter and return types are not given by the official README, so signatures are marked unverified.
Errors
The following points are quoted verbatim from the official documentation. 来源:https://cdn.jsdelivr.net/gh/sindresorhus/p-retry@latest/readme.md · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:51:31.367Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.
- If calling input returns a rejected promise, input is called again until the max retries are reached, it then rejects with the last rejection reason. (https://cdn.jsdelivr.net/gh/sindresorhus/p-retry@latest/readme.md)
- Does not retry on most TypeErrors, with the exception of network errors. (https://cdn.jsdelivr.net/gh/sindresorhus/p-retry@latest/readme.md)
- Receives a context object containing the error and retry state information. (https://cdn.jsdelivr.net/gh/sindresorhus/p-retry@latest/readme.md)
Verification notes
- Official source: https://github.com/sindresorhus/p-retry
- Evidence: https://cdn.jsdelivr.net/gh/sindresorhus/p-retry@latest/readme.md
- Checked on 2026-11-04 by
scripts/phase11/build-api-profiles.mjs
API reference evidence
Fetched from official sources on 2026-11-08T19:05:00+08:00 via WebFetch https://raw.githubusercontent.com/sindresorhus/p-retry/main/readme.md.
pRetry→ signature from https://raw.githubusercontent.com/sindresorhus/p-retry/main/readme.md; official text: “### pRetry(input, options?) Returns aPromisethat is fulfilled when callinginputreturns a fulfilled promise. If callinginputreturns a rejected promise,inputis called again until the max retries are reached”
FAQ
- What does p-retry do?
- If calling input returns a rejected promise, input is called again until the max retries are reached, it then rejects with the last rejection reason.
- How do I install p-retry?
- Run `npm install p-retry`.
- Where can I verify the API details?
- Official repository/documentation: https://github.com/sindresorhus/p-retry. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.
Report a problem with this API docOpens a pre-filled issue on GitHub.