Wrap a function to retry on specific errors
Add retry functionality to any Promise based library
takes any function that returns a promise and will retry it n number of tries
Retry a function returning a rejected promise until it resolves.
Async function retrying written in typescript