Loading…
Retries any sync or async operation up to a configurable number of attempts, with optional fixed or exponentially increasing delays between each try. A `transform` option lets you map raw thrown values into typed errors, and a single overloaded `retry()` function handles both plain functions and Promises transparently.