Raxol.Terminal.Sync.System (Raxol v0.5.0)
View SourceUnified synchronization system for the terminal emulator. Handles synchronization between splits, windows, and tabs with different consistency levels.
Summary
Functions
Returns a specification to start this module under a supervisor.
Gets the current monotonic time in the specified unit.
Gets the current system time in the specified unit.
Types
@type sync_entry() :: %{ key: sync_key(), value: sync_value(), metadata: sync_metadata() }
@type sync_id() :: String.t()
@type sync_key() :: String.t()
@type sync_metadata() :: %{ version: non_neg_integer(), timestamp: non_neg_integer(), source: String.t(), consistency: :strong | :eventual | :causal }
@type sync_stats() :: %{ sync_count: non_neg_integer(), conflict_count: non_neg_integer(), last_sync: non_neg_integer(), consistency_levels: %{required(atom()) => non_neg_integer()} }
@type sync_value() :: term()
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec monotonic_time(:millisecond | :microsecond | :nanosecond) :: integer()
Gets the current monotonic time in the specified unit.
@spec system_time(:millisecond | :microsecond | :nanosecond) :: integer()
Gets the current system time in the specified unit.