Zum Inhalt springen
Deutsch

ScatterGatherOptionsValidator

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Defined in: src/ScatterGatherOptions.ts:84

Validates resolved ScatterGatherOptionsType settings.

timeoutMs is optional — unset means the built-in default — but a present value has to be a positive finite number: 0 disables AskResponseRef’s timer entirely, which would leave every scatter that loses all its routees pending forever with the caller none the wiser.

new ScatterGatherOptionsValidator(): ScatterGatherOptionsValidator

Defined in: src/ScatterGatherOptions.ts:85

ScatterGatherOptionsValidator

OptionsValidator<ScatterGatherOptionsType>.constructor

validate(settings): void

Defined in: src/util/OptionsValidator.ts:75

Check the (merged) settings; throws OptionsError on the first violation. Unset (undefined) fields always pass.

Partial<T>

void

OptionsValidator.validate