Skip to content

Instantly share code, notes, and snippets.

@kandros
Created July 31, 2016 17:13
Show Gist options
  • Save kandros/ef8d301a46ea2c8245276f9844391dc3 to your computer and use it in GitHub Desktop.
Save kandros/ef8d301a46ea2c8245276f9844391dc3 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