class EventMachine::Iterator

def next_item

Once items have run out, will return EM::Iterator::Stop. Procs must supply this themselves
Return the next item from @list or @list_proc.
def next_item
  if @list_proc
    @list_proc.call
  else
    @list.empty? ? Stop : @list.shift
  end
end