Module zellij_utils::channels[][src]

Expand description

Definitions and helpers for sending and receiving messages between threads.

Structs

Receiver

The receiving side of a channel.

RecvError

An error returned from the recv method.

Select

Selects from a set of channel operations.

SendError

An error returned from the send method.

Sender

The sending side of a channel.

SenderWithContext

Sends messages on an MPSC channel, along with an ErrorContext, synchronously or asynchronously depending on the underlying [SenderType].

Constants

OPENCALLS

A key to some thread local storage (TLS) that holds a representation of the thread’s call stack in the form of an ErrorContext.

Statics

ASYNCOPENCALLS

A key to some task local storage that holds a representation of the task’s call stack in the form of an ErrorContext.

Functions

bounded

Creates a channel of bounded capacity.

unbounded

Creates a channel of unbounded capacity.

Type Definitions

ChannelWithContext

An MPSC asynchronous channel with added error context.