Wait, Bang vs. Bang, Wait: Subtleties in Elixir Cron Scripts
This post is just a quick recap of how to do the cron-like task of executing code on a periodic basis in Elixir. In other languages, you might implement this using a sleep function, but behold this warning from ye olde Elixir docs:
For almost all situations where you would use
sleep/1in Elixir, there is likely a more correct, faster and precise way of achieving the same with message passing.