Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


use Tasks for simple concurrency, Jose has built an awesome module for us.


Oh 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: