SyncFlash: document :public ETS table option
This commit is contained in:
parent
6c22d889a1
commit
ede3df12ef
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ defmodule Mv.Vereinfacht.SyncFlash do
|
|||
|
||||
@doc false
|
||||
def create_table! do
|
||||
# :public so any process can write (SyncContact runs in LiveView/Ash transaction process,
|
||||
# not the process that created the table). :protected would restrict writes to the creating process.
|
||||
if :ets.whereis(@table) == :undefined do
|
||||
:ets.new(@table, [:set, :public, :named_table])
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue