[][src]Crate tokio_sync

Asynchronous synchronization primitives.

This crate provides primitives for synchronizing asynchronous tasks.

Modules

mpsc

A multi-producer, single-consumer queue for sending values across asynchronous tasks.

oneshot

A channel for sending a single message between asynchronous tasks.

semaphore

Thread-safe, asynchronous counting semaphore.

watch

A single-producer, multi-consumer channel that only retains the last sent value.

Structs

AtomicWaker

A synchronization primitive for task waking.

Lock

An asynchronous mutual exclusion primitive useful for protecting shared data

LockGuard

A handle to a held Lock.