Skip to content

Function: executeForkBatch() ​

ts
function executeForkBatch<THandle>(params): Promise<ForkBatchExecutionResult>;

Defined in: runtime/fork/execute-fork-batch.ts:144

Executes a concurrent batch of downward .fork() tool calls with turn-batch sibling barrier and 3-way commitChild (SPEC.md §3.7.2).

Forks isolated child scopes under a shared read lock on parentHandle, runs child executables concurrently, coordinates upward interrupt barriers across siblings, and commits completed children sequentially.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active BranchableScope.

Parameters ​

ParameterTypeDescription
paramsForkBatchExecutionParams<THandle>Fork batch execution parameters.

Returns ​

Promise<ForkBatchExecutionResult>

Per-callId tool results and settled ForkBatchContinuationFrame.

Released under the MIT License.