4 ms·
There's no reason not to write GenServers if you need them. Just don't use them as a class replacement :) But if you need to model some simple runtime state o
by sodapopcan 3y ago
There's no reason not to write GenServers if you need them. Just don't use them as a class replacement :) But if you need to model some simple runtime state or concurrency, that's what they're there for.
- throwawaymaths 3y agouse Tasks for simple concurrency, Jose has built an awesome module for us.
- sodapopcan 3y agoOh I agree! I have a couple of gen servers acting as very simple message queues—the kind that don't matter if they are nuked during a deploy.