EcsElixirCore.Infra.DrivenAdapters.EtsGenServer.Features.Sampling.Infra.EtsSamplingGenServer (ecs_elixir_core v1.0.0)

Copy Markdown

ETS-backed atomic counter for sampling positions, owned by a GenServer.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

ensure_table!()

@spec ensure_table!() :: :ets.tab()

next_position(key, cycle)

@spec next_position(String.t(), pos_integer()) :: non_neg_integer()

reset!()

@spec reset!() :: :ok

start_link(opts)