retry-generator
v0.0.3
Published
Utility class/factory for retrying asynchronous operations. Support's indefinite or set number of retries and a custom delay time in ms. Powered by generators.
Downloads
5
Readme
RetryGenerator
A utility class for retrying asynchronous operations with configurable retry behavior. It supports an indefinite number of retries or a specified limit, along with a custom delay between retries.
Features
- Retry asynchronous operations with a specified delay.
- Support for indefinite or set number of retry attempts.
- Propagates errors after the final attempt.
Installation
You can install this package using npm, yarn, pnpm, or bun:
npm install retry-generator
# or
yarn add retry-generator
# or
pnpm add retry-generator
# or
bun add retry-generator