Class: Listen::Adapter::Polling
- Defined in:
- lib/listen/adapter/polling.rb
Overview
Polling Adapter that works cross-platform and has no dependencies. This is the adapter that uses the most CPU processing power and has higher file IO than the other implementations.
Constant Summary collapse
- DEFAULT_POLLING_LATENCY =
1.0
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Listen::Adapter::Base
Class Method Details
.usable? ⇒ Boolean
12 13 14 |
# File 'lib/listen/adapter/polling.rb', line 12 def self.usable? true end |
Instance Method Details
#start ⇒ Object
16 17 18 |
# File 'lib/listen/adapter/polling.rb', line 16 def start _poll_directories end |