AniLink - v3.0.0
    Preparing search index...

    Type Alias OnPaceHandler

    OnPaceHandler: (
        context: RequestContext & { aborted?: boolean; delayMs: number },
    ) => void

    A callback invoked when proactive rate-limit pacing delays the next request after a successful attempt, with the pacing wait in delayMs. Fires after a completed wait, before the request dispatches, and for a wait aborted partway through: an aborted wait reports the elapsed portion in delayMs with aborted: true, so observers can distinguish a cancelled pacing wait from no pacing at all without watching onError.

    Type Declaration

      • (context: RequestContext & { aborted?: boolean; delayMs: number }): void
      • Parameters

        Returns void