Executes the given array in batches in the queue.
In-pins
Out-pins
Executes the given array in batches, this is the non queue version.