HedgingStrategy
Defined in: src/hedging.ts:68
Starts extra attempts when the current one is slow or fails; the first acceptable outcome wins and the rest are aborted. Unlike Polly v8 it does not wait for aborted attempts to finish.
Type Parameters
Section titled “Type Parameters”T
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HedgingStrategy<
T>(options,source):HedgingStrategy<T>
Defined in: src/hedging.ts:75
Parameters
Section titled “Parameters”options
Section titled “options”source
Section titled “source”Returns
Section titled “Returns”HedgingStrategy<T>
Methods
Section titled “Methods”execute()
Section titled “execute()”execute(
next,context):Promise<Outcome<T>>
Defined in: src/hedging.ts:84
Parameters
Section titled “Parameters”Next<T>
context
Section titled “context”Returns
Section titled “Returns”Promise<Outcome<T>>