Module Flambda2_algorithms.Channel
Channels
A channel is really just a reference, but we use separate sender and receiver types to indicate whether we expect to only write or only read to a specific reference.
val send : 'a Flambda2_algorithms.Channel.sender -> 'a -> unitval recv : 'a Flambda2_algorithms.Channel.receiver -> 'aval create :
'a ->
'a Flambda2_algorithms.Channel.sender
* 'a Flambda2_algorithms.Channel.receiverCreate a pair sender, receiver.
The value read (using recv) from the receiver is the last value that was sent (using send) to the sender, or the initial value provided to channel.