Batches promises and returns a promise that resolves to an array of results
The host to use for the request and where notifications will be shown
The array of chunks to process
The function to call for each chunk
Batches promises and returns a promise that resolves to an array of results