-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.yaml
More file actions
94 lines (80 loc) · 2.09 KB
/
package.yaml
File metadata and controls
94 lines (80 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
name:
immortal-queue
version:
0.2.0.0
github:
prikhi/immortal-queue
homepage:
https://github.com/prikhi/immortal-queue#readme
license:
BSD3
license-file:
LICENSE
author:
Pavan Rikhi
maintainer:
pavan.rikhi@gmail.com
copyright:
2020-2025 Pavan Rikhi
category:
Concurrency
extra-source-files:
- README.md
- CHANGELOG.md
synopsis:
Build a pool of queue-processing worker threads.
description: |
@immortal-queue@ is a library for build an asynchronous worker pool that
processes action from a generic queue. You can use any thread-safe datatype
with a push and pop like a @TQueue@ or a @persistent@ database table.
The worker pool is configured by building an @ImmortalQueue@ type, which
describes how to push and pop from the queue as well as how to process
items and handle errors.
For a simple usage example using a TQueue, see the module documentation.
For a more complex example that uses a @persistent@ database as a queue,
see
<https://github.com/Southern-Exposure-Seed-Exchange/southernexposure.com/blob/develop/server/src/Workers.hs Southern Exposure's website code>.
ghc-options:
- -Wall
- -O2
when:
condition:
impl(ghc >= 8.0)
then:
ghc-options:
- -Wcompat
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wredundant-constraints
else:
ghc-options:
- -fwarn-incomplete-record-updates
- -fwarn-incomplete-uni-patterns
dependencies:
- base >= 4.7 && < 5
library:
source-dirs:
src
dependencies:
- async >= 2 && < 3
- immortal < 1 && >= 0.2.1
when:
condition:
impl(ghc < 8.0)
dependencies:
- nats >= 1 && < 2
tests:
immortal-queue-test:
main: Spec.hs
source-dirs:
tests
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts "-N -T"
dependencies:
- immortal-queue
- stm
- tasty
- tasty-hunit