entwine-0.0.4: entwine - Concurrency tools

Safe HaskellNone
LanguageHaskell98

Entwine.Data.Queue

Synopsis

Documentation

data Queue a Source #

A queue is an abstract type, representing a simple bounded FIFO channel that can only have its state queried in a non-blocking manner.

This useful for implementing things like passing data between a producer and consumer process with back presure.

writeQueue :: Queue a -> a -> IO () Source #