def call_linksafe(name, max, func) do
if acquire(name, max) do
safe_key = {name, self()}
inserted = ETS.insert_new(@call_safe_table, [safe_key])
What if the process killed before ETS.insert_new(@call_safe_table, [safe_key]) ?
Seems like we still have problem, although time window for this is rather small.
What if the process killed before
ETS.insert_new(@call_safe_table, [safe_key])?Seems like we still have problem, although time window for this is rather small.