immortal-worker: Create worker threads that logs exceptions and restarts.
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
The package provides means for common pattern in web development in Haskell. When you need a thread that makes some task in a loop with sleeping between iterations you don't wan't it to die from some occasional exception.
So, the package contains:
Helper to create non-dying labeled threads with logging of occured exceptions. Only synchronous exceptions are considered as safe for restoring from. Delay is added between respawns of worker.
Isolation helpers for subactions that should not interfere with each other.
[Skip to Readme]
Properties
Versions | 0.1.0.0, 0.1.0.0 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.7 && <4.15), deepseq (>=1.4 && <1.5), immortal (>=0.3 && <0.4), monad-logger (>=0.3 && <0.4), safe-exceptions (>=0.1 && <0.2), text (>=1.2 && <1.3), unliftio-core (>=0.1 && <0.2) [details] |
License | MIT |
Copyright | 2020 Anton Gushcha |
Author | |
Maintainer | Anton Gushcha <ncrashed@protonmail.com> |
Category | Concurrency |
Uploaded | by NCrashed at 2020-10-04T00:26:40Z |
Modules
[Index] [Quick Jump]
- Control
- Immortal
Downloads
- immortal-worker-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees