parallelInstructionPlan

function parallelInstructionPlan(plans): ParallelInstructionPlan;

Creates a ParallelInstructionPlan from an array of nested plans.

It can accept Instruction objects directly, which will be wrapped in SingleInstructionPlans automatically.

Parameters

ParameterType
plans(/api/functions/ | Instruction<string, readonly (/api/functions/ | AccountLookupMeta<string, string> | AccountMeta<string>)[]> | InstructionPlan)[]

Returns

ParallelInstructionPlan

Examples

const plan = parallelInstructionPlan([
  singleInstructionPlan(instructionA),
  singleInstructionPlan(instructionB),
]);
const plan = parallelInstructionPlan([instructionA, instructionB]);

See

ParallelInstructionPlan

On this page