This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class UserAPI | |
| def self.find_by_emails(emails) | |
| Parallel.map(emails, in_threads: 10) do |email| | |
| UserApi.fetch_user_by_email(email) | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class UserAPI | |
| def find_by_emails(emails) | |
| UserApi.fetch_users_by_emails(emails) | |
| end | |
| end |
OlderNewer