# File lib/spring/watcher/polling.rb, line 29 def start debug { "start: poller=#{@poller.inspect}" } unless @poller @poller = Thread.new { Thread.current.abort_on_exception = true begin until stale? Kernel.sleep latency check_stale end rescue Exception => e debug do "poller: aborted: #{e.class}: #{e}\n #{e.backtrace.join("\n ")}" end raise ensure @poller = nil end } end end