Re: ETS retrieve all objects before deleting the table

Frank Muller <[email protected]> Tue, 18 Jan 2022 14:29:37 +0100
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAFA6GnCg4XXjZKVrrjSyPnFQpJWrno9LOXCSrC3Xp0L-o-YkNA@mail.gmail.com>
Indeed Leonard. The option is quite useful but it doesn’t solve my problem.


> I think this opinion stems from confusion about the GiftData argument
> in ets:give_away/3.
>
> AFAIK this just passes whatever 'data' you set for the variable, not
> the actual table data, through to the recipient of the 'ETS_TRANSFER'
> message.
>
> On Tue, Jan 18, 2022 at 7:28 AM Frank Muller <[email protected]>
> wrote:
> >
> > No it doesn’t. It only charges the table owner
> >
> >
> >> >
> >> >
> >> >> > 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.
> >>
> >> It actually sends all objects elsewhere (to another proc) for
> processing.
> >>
> >> --
> >> Led.
>