stm icon indicating copy to clipboard operation
stm copied to clipboard

TChan documentation newBroadcastTChan example

Open mhitza opened this issue 6 years ago • 2 comments

Current example currently does not work as dupTChan runs inside the STM monad, not IO

mhitza avatar Apr 23 '20 17:04 mhitza

I've just noticed the same problem in the example. The proposed PR is not complete. readTChan in the same example is also STM (not IO) so it needs atomically $ ... too.

zoranbosnjak avatar Oct 14 '20 14:10 zoranbosnjak

Sorry, I did not see the second commit.

zoranbosnjak avatar Oct 14 '20 14:10 zoranbosnjak