Expand description
The crate includes a universal channel and a function for initiating asynchronous activities.
Re-exports§
pub use futures;
Modules§
- mpsc
- A multi-producer, single-consumer queue for sending values between asynchronous tasks.
- slot
- A wrapper that makes
Option
compatible withResult
. - sync
- Synchronization primitives for use in asynchronous contexts.
- task
- This module provides a simple wrapper
around the
tokio::task
module. - time
- unique
- Implementation of a unique id.
- uuid
- Generate and parse universally unique identifiers (UUIDs).
- watch
- A multi-producer, multi-consumer channel that only retains the last sent value.
Structs§
- Join
Handle - An owned permission to join on a task (await its termination).
- Slot
- An
Option
that returnsError
if is not filled. - Slot
Error - Errors with a slot. (Missing option’s error).
- Unique
- A unique id.
Enums§
- Slot
Error Kind - A reason of slot interaction fail.
Traits§
- Msg
- A message that can be sent between threads.
- SyncTag
- A tag that can be sent between threads.
- Tag
- A tag that can be sent between threads.
Functions§
- spawn
- Spawns a new asynchronous task, returning a
JoinHandle
for it. - spawn_
blocking - Runs the provided closure on a thread where blocking is acceptable.
- spawn_
local - Spawns a
!Send
future on the currentLocalSet
orLocalRuntime
.