3 ms·
Ah yes. I’m using a genserver to persist a countdown clock across page loads. ETS gives me a memory leak vibe but I need to bite the bullet and learn to use it
by hinkley 1y ago
Ah yes. I’m using a genserver to persist a countdown clock across page loads.
ETS gives me a memory leak vibe but I need to bite the bullet and learn to use it properly.
- throwawaymaths 1y agoThink of ets as an arena. You can clear the whole table by yanking its owning process. This could even be made automatic by linking it to whatever process needs the ets table.
- hinkley 1y agoHmmm. Maybe I’m misremembering some Erlang release notes then.