# File lib/listen/adapter.rb, line 14 def self.select(options = {}) _log :debug, 'Adapter: considering TCP ...' return TCP if options[:force_tcp] _log :debug, 'Adapter: considering polling ...' return Polling if options[:force_polling] _log :debug, 'Adapter: considering optimized backend...' return _usable_adapter_class if _usable_adapter_class _log :debug, 'Adapter: falling back to polling...' _warn_polling_fallback(options) Polling rescue _log :warn, "Adapter: failed: #{$!.inspect}:#{$@.join("\n")}" raise end
Generated with the Darkfish Rdoc Generator 2.