Return a pair of input/output linear channel endpoints
Send a message.
Send a message.
Message to be sent
AlreadyUsed
if the channel endpoint was already used for output
Alias for send.
Medium-constrained version of lchannels.Out.!!
.
Medium-constrained version of lchannels.Out.!!
.
Create a pair of U
-typed channel endpoints (i,o)
,
send the return value of f(o)
, and return i
.
Create a pair of U
-typed channel endpoints (i,o)
,
send the return value of f(o)
, and return i
.
This method automates channel creation in continuation-passing-style
protocols,
when the output endpoint must be sent as part of a T
-typed message
(as returned by f(i)
),
and the
endpoint is later used to continue the interaction.
input
Function that, when applied to an output channel endpoint, returns the message to be sent.
Create a pair of U
-typed channel endpoints (i,o)
,
send the return value of f(i)
, and return o
.
Create a pair of U
-typed channel endpoints (i,o)
,
send the return value of f(i)
, and return o
.
This method automates channel creation in continuation-passing-style
protocols,
when the input endpoint must be sent as part of a T
-typed message
(as returned by f(i)
),
and the
endpoint is later used to continue the interaction.
output
Function that, when applied to an input channel endpoint, returns the message to be sent.
Medium-constrained version of lchannels.Out.createContIn.
Medium-constrained version of lchannels.Out.createContIn.
Medium-constrained version of lchannels.Out.createContOut.
Medium-constrained version of lchannels.Out.createContOut.
Return a promise that, once completed with a value v
,
causes v
to be sent along this channel endpoint.
Return a promise that, once completed with a value v
,
causes v
to be sent along this channel endpoint.