Configure Listen Adapters for different Operating Systems
masterThe listen gem uses OS-specific adapters for high-performance file monitoring. It automatically selects the best available adapter.
- Darwin (macOS) & Linux: Supported out-of-the-box.
- Windows: It is highly recommended to use the
wdmadapter instead of the slower polling fallback. - BSD: You can use the
rb-kqueueadapter. - Polling: A fallback adapter that works on all platforms (including network filesystems/VM shared folders) but is significantly slower.
To force the use of the polling adapter, use the :force_polling option during initialization.