Skip to content

Instantly share code, notes, and snippets.

@williamtran29
Forked from kandros/elixir_timer_interval.exs
Created December 23, 2017 18:04
Show Gist options
  • Save williamtran29/84c0f45592adfb0bf64118288b485780 to your computer and use it in GitHub Desktop.
Save williamtran29/84c0f45592adfb0bf64118288b485780 to your computer and use it in GitHub Desktop.
Set an interval in elixir-lang using erlang timer module
:timer.apply_interval(1000, IO, :puts, ["weeeee"]) # millisends, module, function as atom, list of arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment