TransactionPlanExecutor
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 Parameter | Default type | Description |
|---|---|---|
TContext extends TransactionPlanResultContext | TransactionPlanResultContext | The type of the context object that may be passed along with results. |
Parameters
| Parameter | Type | Description |
|---|---|---|
transactionPlan | TransactionPlan | The 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.