View Source ETS.Base (ets v0.9.0)

Base implementation for table modules (e.g. ETS.Set and ETS.Bag). Should not be used directly.

Link to this section Summary

Link to this section Types

Specs

option() ::
  {:name, atom()}
  | {:protection, :private | :protected | :public}
  | {:heir, :none | {pid(), any()}}
  | {:keypos, non_neg_integer()}
  | {:write_concurrency, boolean()}
  | {:read_concurrency, boolean()}
  | {:compressed, boolean()}

Specs

options() :: [option()]

Specs

table_types() :: :bag | :duplicate_bag | :ordered_set | :set

Link to this section Functions

Link to this macro

accept(id, table, from, state, list)

View Source (macro)
Link to this function

give_away(table, pid, gift, return)

View Source

Specs

give_away(ETS.table_identifier(), pid(), any(), any()) ::
  {:ok, any()} | {:error, any()}

Specs

select(ETS.continuation()) ::
  {:ok, {[tuple()], ETS.continuation()} | ETS.end_of_table()} | {:error, any()}