ParallelTransactionPlanResult

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

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

Example

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

See

parallelTransactionPlanResult

On this page