跳转到内容
简体中文

BackoffSupervisorOptionsType

此内容尚不支持你的语言。

BackoffSupervisorOptionsType<T> = BackoffSupervisorTuningType & object

Defined in: src/pattern/BackoffSupervisorOptions.ts:128

Plain options-object shape accepted by a BackoffSupervisor.

T

readonly child: ActorClassOrFactory<T>

The child actor — its class, or a factory when it needs dependencies.

readonly optional childOptions?: ActorOptions<T>

Spawn options for the child. Its supervision is fixed, see BackoffSupervisor.factory.

readonly optional clock?: () => number

Override Date.now/Math.random for deterministic tests.

number

readonly optional policy?: BackoffPolicy

Custom policy — overrides the default exponential backoff.