We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mem
Instead of passing a function to immediately call it, I'd like to wrap a function to be used later. From:
function runMeNow() {} function init() { pRetry(runMeNow, { bigOptionsObject }).then(console.log) } init();
to:
const runMeRetried = pRetry.wrap(runMeNow, { bigOptionsObject }); function init() { runMeRetried.then(console.log) } init();
The text was updated successfully, but these errors were encountered:
Sure. It should probably be a named export though. Naming suggestions?
makeRetriable
createRetry
Sorry, something went wrong.
I was looking for something to handle retries and i found this and node-retry. node-retry has retry.wrap https://github.com/tim-kos/node-retry#retrywrapobj-options-methodnames which can wrap an entire object's methods or just specific methods.
retry.wrap
I ended up going with p-retry due to ts support, but wrap seemed very useful for a particular object I have.
wrap
No branches or pull requests
Instead of passing a function to immediately call it, I'd like to wrap a function to be used later. From:
to:
The text was updated successfully, but these errors were encountered: