ts-retry

v1.2.1
A little retry tool in javascript/typescript for node and for browser. Can also bind a timeout to a function.Ex: ```javascript const result = await retryAsync( async ()=> {/* get some data if ready, throw an expection otherwise */}, {delay:100,maxTry:5} )
typescript javascript retry repeat replay node nodejs error promise and 9 more...

test

mocha --require ts-node/register src/**/*.test.ts

build

tsc && tsc -p tsconfig.esm.json

watch

tsc --watch

pretest

npm run build

prebuild

rimraf lib

Metadata

  • MIT
  • Whatever
  • Franck Ledoux
  • released 12/17/2020

Downloads

Maintainers