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 Parameter | Default type | Description |
|---|---|---|
THandle | unknown | Isolation scope handle type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Unique identifier of the loop definition. |
Returns
LoopBuilder<unknown, unknown, THandle, string>
Frozen LoopBuilder instance.