Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aerosol/recycle
:recycle: Convenience wrapper around gen_cycle behaviour
https://github.com/aerosol/recycle
cycle elixir erlang periodic-jobs
Last synced: 3 months 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T12:28:10.000Z (almost 6 years ago)
- Last Synced: 2024-10-01T15:08:00.207Z (4 months ago)
- Topics: cycle, elixir, erlang, periodic-jobs
- Language: Elixir
- Homepage:
- Size: 15.6 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Recycle
[![Hex.pm](https://img.shields.io/hexpm/v/recycle.svg)](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).