class

FSWatch::Watch

Inherits Reference < Object

Constructors

new(path : String, *, recursive : Bool = true, interval : Time::Span | Nil = nil, skip : String -> Bool | Nil = nil, &handler : Event -> )
Source

Class methods

select_backend

The adapter table. Keep the guard list in sync with the requires in src/fswatch.cr.

Source

Instance methods

path
Source
recursive?
Source
stop

Tear the watch down. Idempotent. Event delivery stops immediately; the backend fiber winds down within its stop-check cadence (0.5s).

Source
stopped?
Source