Module futures::sync [] [src]

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.

Modules

mpsc

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

oneshot

A one-shot, futures-aware channel

Structs

BiLock

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

BiLockAcquire

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

BiLockAcquired

Resolved value of the BiLockAcquire<T> future.

BiLockGuard

Returned RAII guard from the poll_lock method.