gossamer/message_channel
A pair of MessagePorts
connected as a bidirectional channel. Hand each port to a
different consumer; messages sent on either port arrive on the
other.
See MessageChannel on MDN.
Values
pub fn new() -> #(
message_port.MessagePort,
message_port.MessagePort,
)
Creates a new pair of freshly-connected MessagePorts. Messages
sent on the first port are received on the second, and vice versa.