Current section
Files
Jump to
Current section
Files
lib/shot_ds/term_pool_owner.ex
defmodule ShotDs.TermPoolOwner do
@moduledoc false
use GenServer
def start_link(_),
do: GenServer.start_link(__MODULE__, %{}, name: __MODULE__)
def init(_) do
:ets.new(:term_pool, [
:set,
:public,
:named_table,
read_concurrency: true,
write_concurrency: true
])
{:ok, %{}}
end
end