[Haskell-cafe] Bug-free, leak-free, battle-tested library for broadcast channels?

Saurabh Nanda saurabhnanda at gmail.com
Wed Jan 25 05:41:18 UTC 2017

> The implementation in STM works well and certainly ticks the battle-tested
> box:
> https://hackage.haskell.org/package/stm-
> Control-Concurrent-STM-TChan.html#v:newBroadcastTChan

What does the following comment in the documentation really mean
(highlighted by >>><<<)?

"Create a write-only TChan
>>> More precisely, readTChan
 will retry
 even after items have been written to the channel.<<< The only way to read
a broadcast channel is to duplicate it with dupTChan

-- Saurabh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170125/a6787ecd/attachment.html>

More information about the Haskell-Cafe mailing list