broadcast-chan: Broadcast channel type that avoids 0 reader space leaks.

[ bsd3, library, system ] [ Propose Tags ]

A variation of Control.Concurrent.Chan from base, which allows to the easy creation of broadcast channels without the space-leaks that may arise from using Control.Concurrent.Chan.dupChan. The Control.Concurrent.Chan.Chan type from Control.Concurrent.Chan consists of both a read and write end. This presents a problem when one wants to have a broadcast channel that, at times, has zero listeners. To write to a Control.Concurrent.Chan.Chan there must always be a read end and this read end will hold ALL messages alive until read. The simple solution applied in this module is to separate read and write ends. As a result, any messages written to the write end can be immediately garbage collected if there are no active read ends, avoding space leaks.

Modules

[Index]

  • Control
    • Concurrent
      • Control.Concurrent.BroadcastChan

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.2.0, 0.2.0.1, 0.2.0.2, 0.2.1, 0.2.1.1, 0.2.1.2
Dependencies base (>=4 && <5) [details]
License BSD-3-Clause
Copyright Copyright © 2014 Merijn Verstraaten
Author Merijn Verstraaten
Maintainer Merijn Verstraaten <merijn@inconsistent.nl>
Revised Revision 1 made by HerbertValerioRiedel at 2018-09-24T15:24:39Z
Category System
Home page https://github.com/merijn/broadcast-chan
Bug tracker https://github.com/merijn/broadcast-chan/issues
Source repo head: git clone ssh://github.com:merijn/broadcast-chan.git
head: hg clone git+ssh://github.com:merijn/broadcast-chan.git
head: hg clone https://bitbucket.org/merijnv/broadcast-chan
Uploaded by MerijnVerstraaten at 2016-07-07T08:06:47Z
Distributions Arch:0.2.1.2, Debian:0.2.1.1, LTSHaskell:0.2.1.2, NixOS:0.2.1.2
Reverse Dependencies 7 direct, 0 indirect [details]
Downloads 6566 total (45 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]