Crate tokio_sync

Source
Expand description

Asynchronous synchronization primitives.

Note: This crate is deprecated in tokio 0.2.x and has been moved into tokio::sync behind the sync feature flag.

This crate provides primitives for synchronizing asynchronous tasks.

Modulesยง

  • An asynchronous Mutex-like type.
  • A multi-producer, single-consumer queue for sending values across asynchronous tasks.
  • A channel for sending a single message between asynchronous tasks.
  • Thread-safe, asynchronous counting semaphore.
  • Thread-safe task notification primitives.
  • A single-producer, multi-consumer channel that only retains the last sent value.