/recycle

:recycle: Convenience wrapper around gen_cycle behaviour

Primary LanguageElixirApache License 2.0Apache-2.0

Recycle

Hex.pm

Convenience wrapper around gen_cycle behaviour.

Provides __using__/1 macro for generating the cycle callback module.

By default, skips the first cycle which is usually what you want when applications such as Ecto.Repo start asynchronously.

Refer to the test suite for sample usage.

Installation

If available in Hex, the package can be installed by adding gencycle to your list of dependencies in mix.exs:

def deps do
  [
    {:recycle, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/recycle/Recycle.html#content.