Skip to content

Document onRetry's second parameter#54

Open
MeLlamoPablo wants to merge 1 commit into
vercel:mainfrom
MeLlamoPablo:patch-1
Open

Document onRetry's second parameter#54
MeLlamoPablo wants to merge 1 commit into
vercel:mainfrom
MeLlamoPablo:patch-1

Conversation

@MeLlamoPablo
Copy link
Copy Markdown

The onRetry functions accepts a second undocumented parameter that corresponds to the attempt number: https://github.com/zeit/async-retry/blob/f64b83de88b6018796ff84a099d28ed7007e83c1/lib/index.js#L33

Credit to @bertyhell for bringing this up on DefinitelyTyped/DefinitelyTyped#34189

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 25, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://async-retry-git-mellamopablo-patch-1.zeit.now.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant