Re: ETS retrieve all objects before deleting the table
Frank Muller <[email protected]> Tue, 18 Jan 2022 11:51:08 +0100
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CAFA6GnCeRfMcSxO=8Z-E0r=s_34XY0AaY+POnBcai9PmrdB0uQ@mail.gmail.com> |
> > I’d like to retrieve all objects before deleting the table. > > Strange task. Table is already "all objects". Nothing strange. Just a simple requirement. Objects are sent elsewhere for processing before deleting the table content. > > What’s the most efficient way to do it? > > ets:give_away/3 That’s strange indeed. How give_away/3 could help? It gives the ownership to another proc.