Bounded STM TChan
Haskell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Control/Concurrent/STM
Example.hs
LICENSE
README.md
Setup.hs
Test.hs
bounded-tchan.cabal

README.md

Bounded STM TChan

A bounded, transactional channel, implemented as a modified STM TChan (http://hackage.haskell.org/package/stm). It is intended to loosely synchronise producers and consumers; exceeding the channel capacity causes the writer to retry.

Additional features:

  • Channels may cancelled, which may be used to signal consumers to shutdown once there are no more elements to process.

  • Channels may be duplicated. Data written to a duplicated channel will appear on all other associated channels, hence leading to a form of broadcast.