Raxol. Core. CompilerState
(Raxol v2.6.0)
View Source
Thread-safe ETS table management for Raxol's plugin command registry.
Atomic ETS operations are guarded with try/rescue ArgumentError to cover
the race window where another process deletes the table between the
existence check and the operation. ETS lookup/insert/delete are atomic and
microsecond-scale; no process isolation is needed.
Summary
Functions
Ensures an ETS table exists, creating it if missing.
Safe ETS delete by key. Returns :ok or {:error, :table_not_found}.
Safe ETS table deletion. Returns :ok or {:error, :table_not_found}.
Safe ETS insert. Returns :ok or {:error, :table_not_found}.
Safe ETS lookup. Returns {:ok, rows} or {:error, :table_not_found}.
Functions
Ensures an ETS table exists, creating it if missing.
Idempotent. Returns :ok if the table already exists or was created.
Safe ETS delete by key. Returns :ok or {:error, :table_not_found}.
Safe ETS table deletion. Returns :ok or {:error, :table_not_found}.
Safe ETS insert. Returns :ok or {:error, :table_not_found}.
Safe ETS lookup. Returns {:ok, rows} or {:error, :table_not_found}.