Method: Listen.stop

Defined in:
lib/listen.rb

.stopObject

This is used by the listen binary to handle Ctrl-C



37
38
39
40
41
42
43
44
45
# File 'lib/listen.rb', line 37

def stop
  while (listener = @listeners.deq(true))
    begin
      listener.stop
    rescue WeakRef::RefError
    end
  end
rescue ThreadError
end