package sessions
Parameter Make.I
The abstract type representing a communication channel between two processes.
val make_channel : unit -> chanmake_channel () will return a new communication channel Binary_session.IO.chan.
val read_channel : chan_endpoint -> 'a tread_channel end_point reads a marshalled value from end_point and returns it.
val write_channel :
'a ->
flags:Marshal.extern_flags list ->
chan_endpoint ->
unit twrite_channel v flags end_point marshals the value v according to flags and writes it to end_point.
val return : 'a -> 'a treturn v creates a light weight thread returning v.