ScatterGatherOptionsBuilder
此内容尚不支持你的语言。
Defined in: src/ScatterGatherOptions.ts:64
Fluent builder for ScatterGatherOptionsType:
const hedgeOptions = ScatterGatherOptions.create().withTimeoutMs(250);system.spawn(Router.scatterGatherFirstCompleted(3, Replica, hedgeOptions), 'replicas');Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScatterGatherOptionsBuilder():
ScatterGatherOptionsBuilder
Returns
Section titled “Returns”ScatterGatherOptionsBuilder
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”build()
Section titled “build()”build():
Partial<T>
Defined in: src/util/OptionsBuilder.ts:51
Snapshot the set fields as an independent Partial<T> (own props only).
Returns
Section titled “Returns”Partial<T>
Inherited from
Section titled “Inherited from”withTimeoutMs()
Section titled “withTimeoutMs()”withTimeoutMs(
timeoutMs):this
Defined in: src/ScatterGatherOptions.ts:71
How long one scatter may run before it is given up on (ms).
Parameters
Section titled “Parameters”timeoutMs
Section titled “timeoutMs”number
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate():ScatterGatherOptionsBuilder
Defined in: src/ScatterGatherOptions.ts:66
Start a fresh builder.
Returns
Section titled “Returns”ScatterGatherOptionsBuilder
