Skip to main content

Crate orb_tokio

Crate orb_tokio 

Source
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;

let rt = TokioRT::new_multi_thread(4);

Structs§

TokioFD
Associate type for TokioRT
TokioInterval
Associate type for TokioRT
TokioJoinHandle
A wrapper around tokio’s JoinHandle that implements AsyncHandle
TokioThreadHandle
A wrapper around tokio’s JoinHandle that implements ThreadHandle

Enums§

TokioRT
The main struct for tokio runtime IO, assign this type to AsyncIO trait when used.

Traits§

AsyncExec
Trait for async runtime execution capabilities.
AsyncHandle
A handle for managing spawned async tasks.
ThreadHandle
A handle for spawn_blocking()