Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Control/Concurrent/STM/TChan.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ newTChanIO = do
--
-- >serve :: TChan Message -> Client -> IO loop
-- >serve broadcastChan client = do
-- > myChan <- dupTChan broadcastChan
-- > myChan <- atomically $ dupTChan broadcastChan
-- > forever $ do
-- > message <- readTChan myChan
-- > message <- atomically $ readTChan myChan
-- > send client message
--
-- The problem with using 'newTChan' to create the broadcast channel is that if
Expand Down