Sentinel::AntiEcho
Anti-Echo Sentinel for filesystem watcher loop suppression.
Tracks impending internal file writes with path and checksum, allowing filesystem watchers to detect and suppress echo modification events within a configurable TTL window.
Constructors
new(ttl : Time::Span = 10.seconds)
Initializes the sentinel with a configurable time-to-live (default 10 seconds).
Class methods
Instance methods
Explicitly evicts entries older than the specified TTL in seconds.
Registers an impending internal file write with path and checksum before disk commit. Evicts stale entries inline under mutex synchronization.
Evaluates whether a filesystem event matches an active registration. Returns true if suppressed (internal write echo), or false if external modification.
ttl
Source