vapor-chamber API reference - v1.16.0
    Preparing search index...

    Function retry

    • retry — async plugin that retries failed dispatches with configurable backoff.

      By default, permanent BusError codes (e.g. validation failures) are not retried — see RetryOptions.isRetryable to customize.

      Parameters

      Returns AsyncPlugin

      const bus = createAsyncCommandBus()
      bus.use(retry({ maxAttempts: 3, strategy: 'exponential', baseDelay: 200 }))