Minimal Periodic Task Runner in Elixir

6 points by tokoph


hauleth

There is issue in that implementation though. Any arriving message (even if unhandled) will cause timer to reset. That is why Process.send_after/4 will be better approach there, as it will not be affected by the incoming messages. Additionally this allows you to have cancelable timers.