solve(items, batchSize) consumes an async iterator over items (one permicrotask) and yields batches of batchSize (final batch may be smaller).
solve(items, batchSize)
items
batchSize
Return an array of batches.
Sample tests