Vanilla thread management in Haskell is low level and it does not approach the problems related to thread deaths. When it's used naively the following typical problems arise:
not get raised in the main thread, which is why the program continues to run as if nothing happened, i.e., with the presumption that the already dead thread is running normally. Naturally this may very well bring your program to a chaotic state.
forked from it. That's why your program may be accumulating ghost threads.
This library solves all the issues above with a concept of a slave thread. A slave thread has the following properties:
all the slave threads that were forked from it. This protects you from ghost threads.
its own finalizer and getting released itself. This gives you hierarchical releasing of resources.
master thread. This protects you from silent exceptions and lets you be sure of getting informed if your program gets brought to an erroneous state.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
1.0.2-bp150.1.3 info | GA Release | 2018-07-30 | 15 |
|
|