postgresql-replicant-0.1.0.1: PostgreSQL logical streaming replication library
Copyright(c) James King 2020 2021
LicenseBSD3
Maintainerjames@agentultra.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.PostgreSQL.Replicant.Queue

Description

Shared FIFO queues

Synopsis

Documentation

newtype FifoQueue a Source #

Constructors

FifoQueue (MVar (Seq a)) 

null :: FifoQueue a -> IO Bool Source #

Return True if the queue is empty

dequeue :: FifoQueue a -> IO (Maybe a) Source #

Remove an item from the end of the non-empty queue.

enqueue :: FifoQueue a -> a -> IO () Source #

Put an item on the front of the queue.

enqueueRight :: FifoQueue a -> a -> IO () Source #

Put an item on the end of the queue so that it will be dequeued first.