Implement parallel forEach.