Skip to main content

Module task

Module task 

1.51.0 ยท Source
Expand description

Types and Traits for working with asynchronous tasks.

Note: Some of the types in this module are only available on platforms that support atomic loads and stores of pointers. This may be detected at compile time using #[cfg(target_has_atomic = "ptr")].

Re-exportsยง

use core::mem::ManuallyDrop; ๐Ÿ”’
use core::task::Waker; ๐Ÿ”’
use core::task::LocalWaker; ๐Ÿ”’ Experimental
use core::task::RawWaker; ๐Ÿ”’
use core::task::RawWakerVTable; ๐Ÿ”’
use crate::rc::Rc; ๐Ÿ”’
use crate::sync::Arc; ๐Ÿ”’

Traitsยง

Wake
The implementation of waking a task on an executor.
LocalWakeExperimental
An analogous trait to Wake but used to construct a LocalWaker.

Functionsยง

local_raw_waker ๐Ÿ”’
raw_waker ๐Ÿ”’
local_waker_fnExperimental
Converts a closure into a LocalWaker.
waker_fnExperimental
Converts a closure into a Waker.