TransactionPlanExecutor

type TransactionPlanExecutor<TContext> = (transactionPlan, config?) => Promise<TransactionPlanResult<TContext>>;

Executes a transaction plan and returns the execution results.

This function traverses the transaction plan tree, executing each transaction message and collecting results that mirror the structure of the original plan.

Type Parameters

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

Parameters

ParameterTypeDescription
transactionPlanTransactionPlanThe transaction plan to execute.
config?{ abortSignal?: AbortSignal; }Optional configuration object that can include an AbortSignal to cancel execution.
config.abortSignal?AbortSignal-

Returns

Promise<TransactionPlanResult<TContext>>

A promise that resolves to the execution results.

See

On this page