class Topia::WatcherPool

Overview

High-performance watcher pool for monitoring multiple directories

Defined in:

topia/async_watcher.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def active_count : Int32 #

[View source]
def add_watcher(id : String, patterns : Array(String), debounce_time = 100.milliseconds) : AsyncWatcher #

[View source]
def start_watching(id : String, &callback : AsyncWatcher::ChangeCallback) #

[View source]
def stop_all #

[View source]
def stop_watcher(id : String) #

[View source]