A Tour of Go in Haskell

GitHub Language
Buffered Channels

BoundedChan package introduces a size-bounded channel.

newBoundedChan 100

Calling writeChan on a full channel blocks until space is available. This is used to create backpressure which limits the production rate of a channel upstream if the consumption rate of the downstream channel is too low.

stm package also have bounded channels, called TBQueue

< 3 / 11 >