package fuseau
Module Fuseau.ChanSource
Basic channels
Basic channel for values of type 'a
Close the channel. Calls to receive_exn will still succeed as long as items remain in the channel, until the channel is entirely drained; then they fail with Closed.
receive c receives an item from c. Suspends if the channel is empty but not closed. Returns None if the channel is empty and closed.
receive_exn c receives an item from the channel. Suspends if the channel is empty and non-closed.
send c x sends x over the channel c. This might suspend the current fiber if the channel is full.
ev_send c x is an event that sends x into c when there is room for it