Sha256: 322f624b2cbad1ed7e2845811035c2a91b0fa6ed98a456f57b5d3d481fb7fbd9

Contents?: true

Size: 1.31 KB

Versions: 15

Compression:

Stored size: 1.31 KB

Contents

//! Asynchronous channels.
//!
//! Like threads, concurrent tasks sometimes need to communicate with each
//! other. This module contains two basic abstractions for doing so:
//!
//! - [oneshot], a way of sending a single value from one task to another.
//! - [mpsc], a multi-producer, single-consumer channel for sending values
//!   between tasks, analogous to the similarly-named structure in the standard
//!   library.
//!
//! All items are only available when the `std` or `alloc` feature of this
//! library is activated, and it is activated by default.

#![cfg_attr(not(feature = "std"), no_std)]
#![warn(
    missing_debug_implementations,
    missing_docs,
    rust_2018_idioms,
    single_use_lifetimes,
    unreachable_pub
)]
#![doc(test(
    no_crate_inject,
    attr(
        deny(warnings, rust_2018_idioms, single_use_lifetimes),
        allow(dead_code, unused_assignments, unused_variables)
    )
))]

#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
#[cfg(feature = "alloc")]
extern crate alloc;

#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
#[cfg(feature = "alloc")]
mod lock;
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
#[cfg(feature = "std")]
pub mod mpsc;
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
#[cfg(feature = "alloc")]
pub mod oneshot;

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wasmtime-25.0.2 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-25.0.1 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-25.0.0 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-24.0.0 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-23.0.2 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-22.0.0 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-21.0.1 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-20.0.2 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-20.0.0 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-18.0.3 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-17.0.1 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-17.0.0 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-16.0.0 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-15.0.1 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs
wasmtime-15.0.0 ./ext/cargo-vendor/futures-channel-0.3.30/src/lib.rs