Ir al contenido
Español

ScatterGatherOptionsBuilder

Esta página aún no está disponible en tu idioma.

Defined in: src/ScatterGatherOptions.ts:64

Fluent builder for ScatterGatherOptionsType:

const hedgeOptions = ScatterGatherOptions.create().withTimeoutMs(250);
system.spawn(Router.scatterGatherFirstCompleted(3, Replica, hedgeOptions), 'replicas');

new ScatterGatherOptionsBuilder(): ScatterGatherOptionsBuilder

ScatterGatherOptionsBuilder

OptionsBuilder.constructor

build(): Partial<T>

Defined in: src/util/OptionsBuilder.ts:51

Snapshot the set fields as an independent Partial<T> (own props only).

Partial<T>

OptionsBuilder.build


withTimeoutMs(timeoutMs): this

Defined in: src/ScatterGatherOptions.ts:71

How long one scatter may run before it is given up on (ms).

number

this


static create(): ScatterGatherOptionsBuilder

Defined in: src/ScatterGatherOptions.ts:66

Start a fresh builder.

ScatterGatherOptionsBuilder