Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adinapoli/threads-supervisor
Simple, IO-based Haskell library for Erlang-inspired thread supervisors
https://github.com/adinapoli/threads-supervisor
Last synced: about 2 months ago
JSON representation
Simple, IO-based Haskell library for Erlang-inspired thread supervisors
- Host: GitHub
- URL: https://github.com/adinapoli/threads-supervisor
- Owner: adinapoli
- License: mit
- Created: 2015-02-12T13:40:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T10:47:15.000Z (over 2 years ago)
- Last Synced: 2024-11-01T01:41:47.484Z (about 2 months ago)
- Language: Haskell
- Size: 96.7 KB
- Stars: 29
- Watchers: 5
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Threads Supervisor
Simple, IO-based, forkIO-friendly threads supervision library.
# Changelog
* 1.2.0.0 (**Breaking changes, sorry!**)
- Remove `SupervisorSpec`
- Rename `monitor` to `monitorWith`* 1.1.0.0
- (**Breaking Change**) Support lts-5.1 and retry-0.7 (https://github.com/adinapoli/threads-supervisor/pull/9)* 1.0.4.1
- Export QueueLike (https://github.com/adinapoli/threads-supervisor/pull/8)* 1.0.4.0
- Split up modules into `Types`, `Bounded` and `Supervisor`
- The `Bounded` module offers a `SupervisorSpec` variant which writes `SupervisionEvent` into a `TBQueue`
- The `Supervisor` module offers a `SupervisorSpec` variant which writes `SupervisionEvent` into a `TQueue`.
Programmers are expected to read from the `eventStream` queue to avoid space leaks.* 1.0.3.0
- Added restart throttling using `RetryPolicy` from the [retry](http://hackage.haskell.org/package/retry) package.# Example
Start from `Control.concurrent.Supervisor.Tutorial`. Other example can be found inside `examples`.
# Installation
```
cabal install threads-supervisor
```or
```
stack install threads-supervisor
```If you have downloaded the latest master from Github:
```
cabal install
```or
```
stack install
```# Testing
```
cabal install --enable-tests
cabal test
```or
```
stack test
```# Contributions
This library scratches my own itches, but please fork away!
Pull requests are encouraged to implement the part of the API
you need.## Contributors
- Alfredo Di Napoli (initial author)
- Sam Rijs (@srijs)