Skip to content

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) { ... }
}

PipelineSource

any