parallelTransactionPlanResult

function parallelTransactionPlanResult<TContext>(
    plans,
): ParallelTransactionPlanResult<TContext>;

Creates a ParallelTransactionPlanResult from an array of nested results.

This function creates a parallel result indicating that the nested plans were executed in parallel.

Type Parameters

Type ParameterDefault typeDescription
TContext extends TransactionPlanResultContextTransactionPlanResultContextThe type of the context object that may be passed along with successful results

Parameters

ParameterTypeDescription
plansTransactionPlanResult<TContext>[]The child results that were executed in parallel

Returns

ParallelTransactionPlanResult<TContext>

Example

const result = parallelTransactionPlanResult([
  singleResultA,
  singleResultB,
]);
result satisfies ParallelTransactionPlanResult;

See

ParallelTransactionPlanResult

On this page