BackoffSupervisorOptionsType
Este conteúdo não está disponível em sua língua ainda.
BackoffSupervisorOptionsType<
T> =BackoffSupervisorTuningType&object
Defined in: src/pattern/BackoffSupervisorOptions.ts:128
Plain options-object shape accepted by a BackoffSupervisor.
Type Parameters
Section titled “Type Parameters”T
Type Declaration
Section titled “Type Declaration”
readonlychild:ActorClassOrFactory<T>
The child actor — its class, or a factory when it needs dependencies.
childOptions?
Section titled “childOptions?”
readonlyoptionalchildOptions?:ActorOptions<T>
Spawn options for the child. Its supervision is fixed, see BackoffSupervisor.factory.
clock?
Section titled “clock?”
readonlyoptionalclock?: () =>number
Override Date.now/Math.random for deterministic tests.
Returns
Section titled “Returns”number
policy?
Section titled “policy?”
readonlyoptionalpolicy?:BackoffPolicy
Custom policy — overrides the default exponential backoff.
