Snippets created by Ruben Bartelink

  • Retry loop, no tricks

    Less-nonsense 8-line retry function that will retry a function a specified up to `maxRetries` times while it throws. After the retries, any remaining exception is allowed to propagate. Accepts a before function to allow you to wait/report when a retry is taking place

    2 people like this

    Posted: 9 years ago by Ruben Bartelink