Modules§
Structs§
- Flag
- A flag with interior mutability that can be raised or lowered. Useful for indicating if an event has occurred.
- IORead
Half - IOWrite
Half - Join
Handle - Equivalent to
tokio::task::JoinHandle
. - JoinSet
- Wraps the tokio
JoinSet
to make it !Send-friendly and to make it easier and safer for us to poll while empty. - Mask
Future AsSend - Task
Queue - A queue that executes tasks sequentially one after the other ensuring order and that no task runs at the same time as another.
- Task
Queue Permit - A permit that when dropped will allow another task to proceed.
- Task
Queue Permit Acquire Future - Unsend
Marker - Marker for items that are ![
Send
]. - Unsync
Waker - A ![
Sync
] and ![Sync
] equivalent toAtomicWaker
.
Functions§
- spawn
- Equivalent to
tokio::task::spawn
, but does not require the future to beSend
. Must only be used on aRuntimeFlavor::CurrentThread
executor, though this is only checked when running with debug assertions. - spawn_
blocking - Equivalent to
tokio::task::spawn_blocking
. Currently a thin wrapper around the tokio API, but this may change in the future. - split_
io - Create a ![
Send
] I/O split on top of a stream. The split reader and writer halves are safe to use only in a single-threaded context, and are not legal to send to another thread.