Expand description
Executors
This module contains tools for managing the raw execution of futures, which is needed when building executors (places where futures can run).
More information about executors can be found online at tokio.rs.
Structs§
- Notify
Handle - A
NotifyHandle
is the core value through which notifications are routed in thefutures
crate. - Run
Deprecated - Units of work submitted to an
Executor
, currently only created internally. - Spawn
- Representation of a spawned future/stream.
Traits§
- Executor
Deprecated - A trait representing requests to poll futures.
- Notify
- A trait which represents a sink of notifications that a future is ready to make progress.
- Unpark
Deprecated - A trait which represents a sink of notifications that a future is ready to make progress.
- Unsafe
Notify - An unsafe trait for implementing custom forms of memory management behind a
Task
.
Functions§
- spawn
- Spawns a future or stream, returning it and the new task responsible for running it to completion.
- with_
notify - Sets the
NotifyHandle
of the current task for the duration of the provided closure.