The function executes asynchronously a provided function once per array element.