A Haskell library for building a pool of queue-processing worker threads, leveraging the immortal package.
To use this library, build an
ImmortalQueue value describing how to
manipulate and process your queue. Then you start start the pool using the
processImmortalQueue function and close or kill it with
For a simple example using a
TQueue, please refer to the haddock
documentation for the module.
For a more complex example that uses a persistent database as a queue backend, see the Southern Exposure Seed Exchange's Workers module.
You can build the project with stack:
For development, you can enable fast builds with file-watching, documentation-building, & test-running:
stack test --haddock --fast --file-watch --pedantic
To build & open the documentation, run:
stack haddock --open immortal-queue
The original code for this package was lifted from Southern Exposure Seed Exchange's website.
*Note that all licence references and agreements mentioned in the immortal-queue README section above are relevant to that project's source code only.