luminal/runtime/
mod.rs

1//! Luminal Runtime Core Implementation
2//!
3//! This module provides the core components of the Luminal async runtime,
4//! designed as a DLL-boundary safe alternative to tokio with similar 
5//! performance characteristics and API compatibility.
6//!
7//! ## Key Components
8//!
9//! - `Runtime`: Main runtime for executing async tasks
10//! - `Handle`: Lightweight handle to a Runtime
11//! - `JoinHandle`: Handle for awaiting the completion of async tasks
12//! - `Executor`: Core task execution engine
13//! - `Task`: Individual async task representation
14//!
15//! ## Module Structure
16//!
17//! The runtime is organized into several submodules:
18//! - `error`: Error types specific to task execution
19//! - `executor`: Core execution engine implementation
20//! - `handle`: Runtime handle implementation
21//! - `join_handle`: Join handle implementation
22//! - `runtime`: Main runtime implementation
23//! - `task`: Task representation
24//! - `worker`: Worker thread implementation
25//! - `waker`: Custom waker implementation
26
27mod error;
28mod executor;
29mod handle;
30mod join_handle;
31mod runtime;
32mod task;
33mod worker;
34mod waker;
35
36// Re-export public components
37pub use self::error::TaskError;
38pub use self::executor::Executor;
39pub use self::handle::Handle;
40pub use self::join_handle::JoinHandle;
41pub use self::runtime::Runtime;
42pub use self::task::TaskId;
43
44// Global convenience functions
45pub use self::runtime::{spawn, block_on};