Skip to content

A lightweight retry function helper for TypeScript.

Notifications You must be signed in to change notification settings

vitormarkis/light-retry

Repository files navigation

How to use

import { retry, exponentialBackoff } from 'light-retry'

function main() {
  const result = await retry(() => fetch('/todos'), {
    retries: 3,
    retryStrategy: exponentialBackoff
  })
}

About

A lightweight retry function helper for TypeScript.

Resources

Stars

Watchers

Forks

Packages

No packages published