supervisors: Monitor groups of threads with non-hierarchical lifetimes.
The supervisors
package provides a useful abstraction for managing the
groups of Haskell threads, which may not have a strictly hierarchical
structure to their lifetimes.
Concretely, the library provides a Supervisor
construct, which can be
used to safely spawn threads while guaranteeing that:
When the supervisor is killed, all of the threads it supervises will be killed.
Child threads can terminate in any order, and memory usage will always be proportional to the number of *live* supervised threads.
One way to think of it is that supervisors
is to async
as
resourcet
is to bracket
.
Note that this package is EXPERIMENTAL; it needs more careful testing before I can earnestly recommend relying on it.
See the README and module documentation for more information.
[Skip to Readme]
Downloads
- supervisors-0.2.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.2.1.0 |
---|---|
Change log | CHANGELOG.md |
Dependencies | async (>=2.2.1 && <2.3), base (>=4.11 && <5), containers (>=0.5.9 && <0.7), safe-exceptions (>=0.1.7 && <0.2), stm (>=2.5 && <2.6) [details] |
License | MIT |
Copyright | 2018 Ian Denhardt |
Author | Ian Denhardt |
Maintainer | ian@zenhack.net |
Revised | Revision 2 made by isd at 2020-09-10T18:19:05Z |
Category | Concurrency |
Home page | https://github.com/zenhack/haskell-supervisors |
Bug tracker | https://github.com/zenhack/haskell-supervisors/issues |
Source repo | head: git clone https://github.com/zenhack/haskell-supervisors.git -b master |
Uploaded | by isd at 2018-12-18T22:58:07Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 1423 total (10 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2018-12-18 [all 1 reports] |