Map¶
Maestro\Core\Task\MapTask
Map a values to tasks.
Parameters¶
array Pass each item of this array to the factory. -
array
Description¶
Use this to add a sequence of tasks to the pipeline for each item of a given array.
new MapTask(
factory: fn(string $var) => new NullTask(),
array: ['one', 'two'],
);