class Build::Files::Monitor::Polling
def run(**options, &block)
def run(**options, &block) catch(:interrupt) do while true monitor.update(monitor.roots) yield sleep(options[:latency] || 1.0) end end end
def run(**options, &block) catch(:interrupt) do while true monitor.update(monitor.roots) yield sleep(options[:latency] || 1.0) end end end