Skip to content

Function: createLoopBuilder() ​

ts
function createLoopBuilder<THandle>(id): LoopBuilder<unknown, unknown, THandle, string>;

Defined in: builders/create-loop-builder.ts:17

Creates a fluent LoopBuilder for P.loop(id).

Validates that id is a non-empty identifier and initializes an immutable LoopBuilder with maxIterations: 3 and preserveActorSession: true.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

Parameters ​

ParameterTypeDescription
idstringUnique identifier of the loop definition.

Returns ​

LoopBuilder<unknown, unknown, THandle, string>

Frozen LoopBuilder instance.

Released under the MIT License.