# File lib/thin/controllers/controller.rb, line 122 def wait_for_file(state, file) Timeout.timeout(@options[:timeout] || 30) do case state when :creation then sleep 0.1 until File.exist?(file) when :deletion then sleep 0.1 while File.exist?(file) end end end