hackage.haskell.org : kazura-queue
"kazura-queue" provides an implementation of FIFO queue. It is faster than Chan, TQueue or TChan by the benefit of fetch-and-add instruction. Main motivation of this package is to solve some difficulty of "unagi-chan" package. In "unagi-chan", the item in the queue/chan can be lost when async exception is throwed to the read thread while waiting for read. (Although it has handler to recover lost item, it is difficult to keep FIFO in such case) In "unagi-chan", garbage items of the queue cannot be collected immediately. Since the buffer in the queue has the reference to the items until the buffer is garbage-collected. "kazura-queue" is slightly slower than "unagi-chan" instead of solving these issues. "kazura-queue" lost broadcast function to improve the second issue. It means that kazura-queue is not "Chan" but is just "Queue".
Registry
-
Source
- Homepage
- JSON
purl: pkg:hackage/kazura-queue
Keywords:
bsd3
, concurrency
, library
, Propose Tags
License: BSD-3-Clause
Latest release: almost 7 years ago
First release: over 9 years ago
Dependent repositories: 6
Downloads: 3,810 total
Stars: 4 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 7 days ago