The implementation in STM works well and certainly ticks the battle-tested box:

https://hackage.haskell.org/package/stm-2.4.4.1/docs/Control-Concurrent-STM-TChan.html#v:newBroadcastTChan

Cheers,



On 23 January 2017 at 10:52, Saurabh Nanda <saurabhnanda@gmail.com> wrote:
(cross-posted from Reddit because I'm not sure of the audience overlap between haskell-cafe & reddit)

I want to broadcast some instrumentation data from deep within my Haskell app. This data will have listeners in some environments (say, debug), but not others (say, production). Which library should I be using? A little searching threw two possible candidates:

* http://hackage.haskell.org/package/split-channel
* https://hackage.haskell.org/package/broadcast-chan

But, I'm not sure if these are battle-tested. Any help would be appreciated.

-- Saurabh.


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.