type alias HardenedCall
Since 0.2.0

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

The call's result type

Definition

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

Usage

import { type HardenedCall } from "common/src/index.ts";