Expand description
§Orb Tokio Runtime
This crate provides a Tokio-based implementation of the Orb async runtime traits. It allows users to leverage Tokio’s powerful async runtime with the unified Orb interface.
The main type provided is TokioRT, which implements the core runtime functionality.
See the main Orb documentation for more information.
§Usage
use orb_tokio::TokioRT;
use orb::prelude::*;
type RT = TokioRT;
let rt = RT::multi(4);Structs§
- TokioFD
- Associate type for TokioRT
- Tokio
Interval - Associate type for TokioRT
- Tokio
Join Handle - A wrapper around tokio’s JoinHandle that implements AsyncJoiner
- TokioRT
- Tokio
Thread Handle - A wrapper around tokio’s JoinHandle that implements ThreadJoiner
Enums§
- Tokio
Exec - The main struct for tokio runtime IO, assign this type to AsyncIO trait when used.
Traits§
- Async
Exec - Trait for async runtime object.
- Async
Joiner - A handle for managing spawned async tasks.
- Async
Runtime - A marker trait that combines all the core async runtime capabilities,
including
AsyncIO, andAsyncTime. It serves as a convenient way to specify that a type provides all the core async runtime functionality. - Thread
Joiner - A handle for spawn_blocking()