mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +02:00
17 lines
488 B
Rust
17 lines
488 B
Rust
//! 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:
|
||
|
|
//!
|
||
|
|
//! - [oneshot](oneshot/index.html), a way of sending a single value
|
||
|
|
//! from one task to another.
|
||
|
|
//! - [mpsc](mpsc/index.html), a multi-producer, single-consumer channel for
|
||
|
|
//! sending values between tasks.
|
||
|
|
|
||
|
|
pub use tokio_sync::{
|
||
|
|
mpsc,
|
||
|
|
oneshot,
|
||
|
|
};
|