Expand description
Prelude: internal
The purpose of this module is to expose common threading types.
Modules
- Atomic types
Structs
- The context of an asynchronous task.
- A
Waker
is a handle for waking up a task by notifying its executor that it is ready to be run.
Enums
- Atomic memory orderings
Traits
- The implementation of waking a task on an executor.
Functions
- spawn
rt
Spawns a new asynchronous task, returning aJoinHandle
for it. - Runs the provided closure on a thread where blocking is acceptable.
- Spawns a
!Send
future on the currentLocalSet
.