https://github.com/wgnet/simplest_one_for_one
A bit simpler than simple_one_for_one
https://github.com/wgnet/simplest_one_for_one
Last synced: about 2 months ago
JSON representation
A bit simpler than simple_one_for_one
- Host: GitHub
- URL: https://github.com/wgnet/simplest_one_for_one
- Owner: wgnet
- License: apache-2.0
- Created: 2014-06-27T08:36:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-22T09:04:03.000Z (about 11 years ago)
- Last Synced: 2025-01-17T20:17:00.618Z (9 months ago)
- Size: 270 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE
Awesome Lists containing this project
README
simplest_one_for_one
====================A bit simpler than simple_one_for_one.
By doing `{ok, Sup} = simplest_one_for_one:start_link( {local, SupRegName}, { WorkerMod, WorkerStartLinkFunc, WorkerFixedArgs } ).` you just spawn_link something pretty much alike to the simple_one_for_one supervisor, but slightly simpler.
This implementation of supervisor handles the sampe gen-calls as the traditional supervisor does, hence you spawn worker using `supervisor:start_child/2` and terminate them with `supervisor:terminate_child/2`.