[][src]Module executors::bichannel

A simple abstraction for bidirectional 1-to-1 channels built over std::sync::mpsc.

Bichannels have two asymmetrical endpoints LeftEnd, RightEnd which provide mirror images of send/receive functions to each other.

Structs

Endpoint

Functions

bichannel

Creates a new asynchronous bidirectional channel, returning the the two asymmetrical Endpoints. All data sent on an Endpoint will become available on the other Endpoint in the same order as it was sent, and no send will block the calling thread (this channel has an "infinite buffer") The recv will block until a message is available.