Expand description

Future-aware synchronization

This module, which is modeled after std::sync, contains user-space synchronization tools that work with futures, streams and sinks. In particular, these synchronizers do not block physical OS threads, but instead work at the task level.

More information and examples of how to use these synchronization primitives can be found online at tokio.rs.

Modules

A multi-producer, single-consumer, futures-aware, FIFO queue with back pressure.

A one-shot, futures-aware channel

Structs

A type of futures-powered synchronization primitive which is a mutex between two possible owners.

Future returned by BiLock::lock which will resolve when the lock is acquired.

Resolved value of the BiLockAcquire<T> future.

Returned RAII guard from the poll_lock method.