Skip to content

rafaquelhodev/periodic-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Periodic-task

This is a simple example where a periodic task is created with the aid of Elixir OTP.

Usage

iex -S mix
import Calculator

{:ok, pid} = Calculator.start_link([])

Calculator.add_periodic(pid, 2)

And voila, we'll see something like this:

2
4
6
8
...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages