[−][src]Module tokio::sync
Future-aware synchronization
This module is enabled with the sync
feature flag.
Tasks sometimes need to communicate with each other. This module contains two basic abstractions for doing so:
Modules
lock | An asynchronous |
mpsc | A multi-producer, single-consumer queue for sending values across asynchronous tasks. |
oneshot | A channel for sending a single message between asynchronous tasks. |
watch | A single-producer, multi-consumer channel that only retains the last sent value. |