https://github.com/deadtrickster/lazy-supervisor
Too lazy to write this field
https://github.com/deadtrickster/lazy-supervisor
beam elixir erlang lazy random-tag supervisor
Last synced: about 2 months ago
JSON representation
Too lazy to write this field
- Host: GitHub
- URL: https://github.com/deadtrickster/lazy-supervisor
- Owner: deadtrickster
- License: apache-2.0
- Created: 2018-11-21T13:38:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T13:56:17.000Z (over 7 years ago)
- Last Synced: 2025-03-14T06:41:49.645Z (over 1 year ago)
- Topics: beam, elixir, erlang, lazy, random-tag, supervisor
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lazy_supervisor #
Copyright (c) 2018 Ilya Khaprov <>.
__Version:__ 0.0.1
[![Hex.pm][Hex badge]][Hex link]
[![Hex.pm Downloads][Hex downloads badge]][Hex link]
[![Build Status][Travis badge]][Travis link]
[![Coverage Status][Coveralls badge]][Coveralls link]
## Lazy supervisor
Just like standard OTP but lazy(so lazy it's a copy-pasta):
- stops children started by `start_children` after a timeout;
- also stops child started by `start_children` if the calling process stops.
Example - one-off connection in a separate process and you don`t want to wait forever, plus after you
stopped waiting this connection is useless anyway.
## Contributing
Section order:
- Types
- Macros
- Callbacks
- Public API
- Deprecations
- Private Parts
Install the `git` pre-commit hook:
```bash
./bin/pre-commit.sh install
```
The pre-commit check can be skipped by passing `--no-verify` to `git commit`.
## License
Apache2
[Hex badge]: https://img.shields.io/hexpm/v/lazy_supervisor.svg?maxAge=2592000?style=plastic
[Hex link]: https://hex.pm/packages/lazy_supervisor
[Hex downloads badge]: https://img.shields.io/hexpm/dt/lazy_supervisor.svg?maxAge=2592000
[Travis badge]: https://travis-ci.org/deadtrickster/lazy_supervisor.svg?branch=version-3
[Travis link]: https://travis-ci.org/deadtrickster/lazy_supervisor
[Coveralls badge]: https://coveralls.io/repos/github/deadtrickster/lazy_supervisor/badge.svg?branch=master
[Coveralls link]: https://coveralls.io/github/deadtrickster/lazy_supervisor?branch=master