Skip to content
♻️ Convenience wrapper around gen_cycle behaviour
Elixir
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.formatter.exs
.gitignore
LICENSE
README.md
mix.exs
mix.lock

README.md

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.

You can’t perform that action at this time.