Module safina::sync

source · []
Expand description

Structs

An owning iterator over messages on a Receiver, created by into_iter.

An iterator over messages on a Receiver, created by iter.

A wrapper around std::sync::Mutex with an async lock method.

An RAII scoped lock of a Mutex. It automatically unlocks the mutex when dropped (falls out of scope).

The receiving half of a channel. This half can only be owned by one thread.

An iterator that attempts to yield all pending values for a Receiver, created by try_iter.

Functions

Creates a channel that can be used to send a single value.

Creates a new synchronous, bounded channel. All data sent on the SyncSender will become available on the Receiver in the same order as it was sent. The Receiver will block until a message becomes available.