Skip to content

Instantly share code, notes, and snippets.

@abhijith
Created March 18, 2010 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhijith/336709 to your computer and use it in GitHub Desktop.
Save abhijith/336709 to your computer and use it in GitHub Desktop.
-module(kicker).
-compile(export_all).
sleeper() ->
spawn(fun() -> loop() end).
loop() ->
receive
Any ->
io:format("Message ~p~n", [Any]),
loop()
end.
kick() ->
{ok,{interval,TRef}} = timer:send_interval(3000, Pid, "wah").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment