Safe Haskell | None |
---|---|
Language | Haskell2010 |
Different implementations of FIFO buffers.
Synopsis
- fifoUnbounded :: Monad m => ResamplingBuffer m cl1 cl2 a (Maybe a)
- fifoBounded :: Monad m => Int -> ResamplingBuffer m cl1 cl2 a (Maybe a)
- fifoWatch :: Monad m => ResamplingBuffer m cl1 cl2 a (Maybe a, Int)
FIFO (first-in-first-out) buffers
fifoUnbounded :: Monad m => ResamplingBuffer m cl1 cl2 a (Maybe a) Source #
An unbounded FIFO buffer.
If the buffer is empty, it will return Nothing
.
fifoBounded :: Monad m => Int -> ResamplingBuffer m cl1 cl2 a (Maybe a) Source #
A bounded FIFO buffer that forgets the oldest values when the size is above a given threshold.
If the buffer is empty, it will return Nothing
.