Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement