You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{heir,Pid,HeirData} | {heir,none} - Set a process as heir. The heir inherits the table if the owner terminates. Message {'ETS-TRANSFER',tid(),FromPid,HeirData} is sent to the heir when that occurs. The heir must be a local process. Default heir is none, which destroys the table when the owner terminates.
Make process Pid the new owner of table Table. If successful, message {'ETS-TRANSFER',Table,FromPid,GiftData} is sent to the new owner.
The process Pid must be alive, local, and not already the owner of the table. The calling process must be the table owner.
Notice that this function does not affect option heir of the table. A table owner can, for example, set heir to itself, give the table away, and then get it back if the receiver terminates.
The text was updated successfully, but these errors were encountered:
https://www.erlang.org/doc/apps/stdlib/ets#heir
https://www.erlang.org/doc/apps/stdlib/ets.html#give_away/3
The text was updated successfully, but these errors were encountered: