@ende/async/unstable-retry

ende add jsr:@ende/async

Version 2026.10.15 on JSR.

Exports

  • retry — Calls the given (possibly asynchronous) function up to `maxAttempts` times. Retries as long as the given function throws. If the attempts are exhausted, throws a RetryError with `cause` set to the inner exception.
  • RetryError — Error thrown in retry once the maximum number of failed attempts has been reached.
  • RetryOptions — Options for retry.