https://github.com/aerosol/recycle
:recycle: Convenience wrapper around gen_cycle behaviour
https://github.com/aerosol/recycle
cycle elixir erlang periodic-jobs
Last synced: about 1 year ago
JSON representation
:recycle: Convenience wrapper around gen_cycle behaviour
- Host: GitHub
- URL: https://github.com/aerosol/recycle
- Owner: aerosol
- License: apache-2.0
- Created: 2019-02-11T10:04:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T12:28:10.000Z (over 7 years ago)
- Last Synced: 2025-04-06T05:36:42.676Z (about 1 year ago)
- Topics: cycle, elixir, erlang, periodic-jobs
- Language: Elixir
- Homepage:
- Size: 15.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Recycle
[](https://hex.pm/packages/recycle)
Convenience wrapper around [gen_cycle](https://hex.pm/packages/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](https://hex.pm/docs/publish), the package can be installed
by adding `gencycle` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:recycle, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/recycle/Recycle.html#content](https://hexdocs.pm/recycle).