@hackage bounded-queue1.0.0
A strict, immutable, thread-safe, single-ended, bounded queue.
Categories
License
BSD-3-Clause
Maintainer
colin@kadena.io
Links
- Homepage
- Documentation
- No source repository
- Security
Versions
- 1.0.0 Mon, 6 May 2019
Installation
Dependencies (3)
- base >=4.7 && <5
- containers
- deepseq Show all…
Dependents (1)
@hackage/spade
bounded-queue
This library provides a strict, immutable, thread-safe, single-ended, bounded
queue. When the insert limit is reached and a cons is attempted, this BQueue
automatically drops old entries off its end. Thus, writes always succeed and
never block.
This data structure is intended as a "sliding window" over some stream of data, where we wish old entries to be naturally forgotten. Since this is an immutable data structure and not a concurrent queue, we provide instances for the usual useful typeclasses with which one can perform analysis over the entire "window".