Haskell one way `dupTChan`

Is there any function like this one . Also, when you do:

newChan = dupTChanOneWay oldChan

Is everything written in oldChanwritten in newChan, but not vice versa?

+4
source share
1 answer

I really think it's possible-ish without a routing flow. Its not-so-requested data structure - the actual TChan - but it gives a structure that you can read from "two sources", but where you can write exclusively.

. TChan. , TChan. chan orElse chan - "Output", . , "".

0

Source: https://habr.com/ru/post/1535117/


All Articles