p-retry
Retry a recoverable operation when a JavaScript task fails at first.
sindresorhus · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Make a local operation fail on its first try and succeed on its second.
What we tested
9.0.0. Make a local operation fail on its first try and succeed on its second. Retried exactly once and returned the expected Ready message.