Module zellij_utils::channels
source · Expand description
Definitions and helpers for sending and receiving messages between threads.
Structs§
- The receiving side of a channel.
- An error returned from the
recv
method. - Selects from a set of channel operations.
- An error returned from the
send
method. - The sending side of a channel.
- Sends messages on an MPSC channel, along with an
ErrorContext
, synchronously or asynchronously depending on the underlying [SenderType
].
Enums§
- An error returned from the
try_send
method.
Constants§
- 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§
- A key to some task local storage that holds a representation of the task’s call stack in the form of an
ErrorContext
.
Functions§
- Creates a channel of bounded capacity.
- Creates a channel of unbounded capacity.
Type Aliases§
- An MPSC asynchronous channel with added error context.