Argus.Symbols.ETS (Panoptes v0.13.0)

Copy Markdown View Source

The default store: two public ETS tables and an atomic counter, so parallel extraction workers intern without coordination. A binary that loses the insert race takes the id the winner assigned.

Summary

Types

t()

@type t() :: %{
  forward: :ets.tid(),
  reverse: :ets.tid(),
  counter: :atomics.atomics_ref()
}

Functions

destroy(map)

@spec destroy(t()) :: :ok

new()

@spec new() :: t()