ParallelTransactionPlanResult

type ParallelTransactionPlanResult<TContext, TSingle> = Readonly<{
  kind: "parallel";
  plans: TransactionPlanResult<TContext, TSingle>[];
}>;

A result for a parallel transaction plan.

This represents the execution result of a ParallelTransactionPlan and contains child results that were executed in parallel.

You may use the parallelTransactionPlanResult helper to create objects of this type.

Type Parameters

Type ParameterDefault typeDescription
TContext extends TransactionPlanResultContextTransactionPlanResultContextThe type of the context object that may be passed along with successful results
TSingle extends SingleTransactionPlanResult<TContext>SingleTransactionPlanResult<TContext>The type of single transaction plan results in this tree

Example

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

See

parallelTransactionPlanResult

On this page