lthms / elixir-beacon
configAdd the GPL3 license and license headerson April 18, 2017
libAdd the `reset` primitive to the Beacon AP…on September 1, 2017
testAdd the `reset` primitive to the Beacon AP…on September 1, 2017
.ignorechore(pijul): Add .ignore fileon August 6, 2017
LICENSEAdd the GPL3 license and license headerson April 18, 2017
README.mdAdd a minimal READMEon April 18, 2017
mix.exsGive Beacon its own repositoryon April 18, 2017
README.md

Beacon

A Process that periodically reaches a target at a fixed interval.

Example

When configuring the Beacon, the |> operator can be used to write a cleaner code.

{:ok, r} = Beacon.start_link(self())

r |> Beacon.set_periodic_callback(3, &(send(&1, :ping)))
  |> Beacon.set_duration(10)
  |> Beacon.enable