EM.synchrony do
statuses = [
User.very_frequent,
User.frequent,
User.infrequent
]
...
I then want to iterate through the collections and perform an imap call asynchronously using FiberIterator:
EM::Synchrony::FiberIterator.new(statuses.size, @@pool_size).each do |i|
status = statuses[i]
status.each do |user|
# imap stuff goes here
end
end
end
On the examples on the wiki and on the tests I saw, you use other asynchronous I/O such as TCP and HTTP. But is there an option for imap packed in this gem or another gem?
I am using the following:
I have three active_relation objects in an array:
I then want to iterate through the collections and perform an imap call asynchronously using FiberIterator:
On the examples on the wiki and on the tests I saw, you use other asynchronous I/O such as TCP and HTTP. But is there an option for imap packed in this gem or another gem?