module Build::Files

def self.run_with_polling(monitor, options = {}, &block)

def self.run_with_polling(monitor, options = {}, &block)
	catch(:interrupt) do
		while true
			monitor.update(monitor.roots)
	
			yield
	
			sleep(options[:latency] || 5.0)
		end
	end
end