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;
use orb::prelude::*;

type RT = TokioRT;

let rt = RT::multi(4);

Structs§

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

Enums§

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

Traits§

AsyncExec
Trait for async runtime object.
AsyncJoiner
A handle for managing spawned async tasks.
AsyncRuntime
A marker trait that combines all the core async runtime capabilities, including AsyncIO, and AsyncTime. It serves as a convenient way to specify that a type provides all the core async runtime functionality.
ThreadJoiner
A handle for spawn_blocking()