This PR adds a simple async Retry primitive to @sidewinder/async. This will run a async function up to a configured attempts threshold and throw last error if over threshold. The Retry.run function will return the inner calls return value on success.
This PR adds a simple async
Retry
primitive to@sidewinder/async
. This will run a async function up to a configured attempts threshold and throw last error if over threshold. TheRetry.run
function will return the inner calls return value on success.