Sha256: 781f6d7d2484d6bd88ef9533d5c4729eeb8d4ee9bb8b9f4bad7049a78e190c32

Contents?: true

Size: 1.25 KB

Versions: 18

Compression:

Stored size: 1.25 KB

Contents

//! Tools for working with tasks.
//!
//! This module contains:
//!
//! - [`Spawn`], a trait for spawning new tasks.
//! - [`Context`], a context of an asynchronous task,
//!   including a handle for waking up the task.
//! - [`Waker`], a handle for waking up a task.
//!
//! The remaining types and traits in the module are used for implementing
//! executors or dealing with synchronization issues around task wakeup.

#[doc(no_inline)]
pub use core::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};

pub use futures_task::{FutureObj, LocalFutureObj, LocalSpawn, Spawn, SpawnError, UnsafeFutureObj};

pub use futures_task::noop_waker;
pub use futures_task::noop_waker_ref;

#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
#[cfg(feature = "alloc")]
pub use futures_task::ArcWake;

#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
#[cfg(feature = "alloc")]
pub use futures_task::waker;

#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
#[cfg(feature = "alloc")]
pub use futures_task::{waker_ref, WakerRef};

#[cfg_attr(
    target_os = "none",
    cfg(any(target_has_atomic = "ptr", feature = "portable-atomic"))
)]
pub use futures_core::task::__internal::AtomicWaker;

mod spawn;
pub use self::spawn::{LocalSpawnExt, SpawnExt};

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
wasmtime-28.0.0 ./ext/cargo-vendor/futures-util-0.3.31/src/task/mod.rs
wasmtime-27.0.0 ./ext/cargo-vendor/futures-util-0.3.31/src/task/mod.rs
wasmtime-26.0.0 ./ext/cargo-vendor/futures-util-0.3.31/src/task/mod.rs
wasmtime-25.0.2 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-25.0.1 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-25.0.0 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-24.0.0 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-23.0.2 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-22.0.0 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-21.0.1 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-20.0.2 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-20.0.0 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-18.0.3 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-17.0.1 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-17.0.0 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-16.0.0 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-15.0.1 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs
wasmtime-15.0.0 ./ext/cargo-vendor/futures-util-0.3.30/src/task/mod.rs