Setu-TS
    Preparing search index...

    Type Alias HardenedCall<T>

    HardenedCall: (signal?: AbortSignal) => Promise<T>

    The hardened callable returned by IResilienceService.wrap.

    The signal is optional: guarded() behaves exactly as before, while guarded(signal) additionally lets the caller cancel from outside — the outer abort propagates into the protected call, stops the retry loop, and rejects a waiter still queued behind the bulkhead.

    Type Parameters

    • T

      The call's result type

    Type Declaration

      • (signal?: AbortSignal): Promise<T>
      • Parameters

        • Optionalsignal: AbortSignal

          Optional caller-owned signal that cancels the whole call

        Returns Promise<T>

    0.2.0