perform an async operation on an array of values