Reduce an array of values via an asynchronous function.