Method: Metasploit::Aggregator::EnumeratorQueue#each_item

Defined in:
lib/metasploit/aggregator.rb

#each_itemObject



270
271
272
273
274
275
276
277
278
# File 'lib/metasploit/aggregator.rb', line 270

def each_item
  return enum_for(:each_item) unless block_given?
  loop do
    r = @q.pop
    break if r.equal?(@sentinel)
    fail r if r.is_a? Exception
    yield r
  end
end