Raxol.Terminal.ScreenBuffer.FileWatcher (Raxol v2.0.1)

View Source

Handles file system event monitoring for the terminal screen buffer. This module provides functions for processing file system events and managing debounced event handling.

Summary

Types

debounce_timeout()

@type debounce_timeout() :: non_neg_integer()

event()

@type event() :: {:created, Path.t()} | {:modified, Path.t()} | {:deleted, Path.t()}

events()

@type events() :: [event()]

t()

@type t() :: %Raxol.Terminal.ScreenBuffer.FileWatcher{
  last_event_time: non_neg_integer(),
  pending_events: events(),
  watched_paths: MapSet.t(Path.t())
}

Functions

cleanup(state)

@spec cleanup(t()) :: t()

handle_debounced(state, events, timeout)

@spec handle_debounced(t(), events(), debounce_timeout()) :: t()

handle_event(state, event)

@spec handle_event(t(), event()) :: t()

init()

@spec init() :: t()