resilient
resilient(
pipeline):any
Defined in: src/decorators.ts:18
Runs a method through a pipeline. Works with both TypeScript’s experimentalDecorators and standard (TC39) decorators:
class PaymentClient { @resilient(paymentPipeline) async charge(order: Order) { ... } // use getResilienceSignal() inside to get the signal
@resilient((self: PaymentClient) => self.pipeline) // per-instance pipeline async refund(id: string) { ... }}Parameters
Section titled “Parameters”pipeline
Section titled “pipeline”PipelineSource
Returns
Section titled “Returns”any