light-retry
v0.1.0
Published
A lightweight retry function helper for TypeScript.
Downloads
6
Readme
How to use
import { retry, exponentialBackoff } from 'light-retry'
function main() {
const result = await retry(() => fetch('/todos'), {
retries: 3,
retryStrategy: exponentialBackoff
})
}