项目作者: prikhi

项目描述 :
Build a Queue-Processing Worker Pool using Immortal
高级语言: Haskell
项目地址: git://github.com/prikhi/immortal-queue.git
创建时间: 2020-03-01T13:33:42Z
项目社区:https://github.com/prikhi/immortal-queue

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Immortal Queue

immortal-queue Build Status

A Haskell library for building a pool of queue-processing worker threads,
leveraging the immortal package.

Usage

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 closeImmortalQueue
or killImmortalQueue.

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.

Developing

You can build the project with stack:

  1. stack build

For development, you can enable fast builds with file-watching,
documentation-building, & test-running:

  1. stack test --haddock --fast --file-watch --pedantic
  2. `

To build & open the documentation, run:

  1. stack haddock --open immortal-queue
  2. `

LICENSE

BSD-3

The original code for this package was lifted from Southern Exposure Seed
Exchange’s website
.