spawned_rt/lib.rs
1//! Runtime abstraction layer for `spawned`.
2//!
3//! This crate wraps tokio and standard library primitives behind a uniform
4//! interface. Users typically don't depend on `spawned-rt` types directly —
5//! the relevant re-exports (`run`, `CancellationToken`, etc.) are available
6//! through `spawned_concurrency::tasks` and `spawned_concurrency::threads`.
7//!
8//! # Modules
9//!
10//! - [`tasks`] — async runtime backed by tokio: `run()`, `spawn()`, `CancellationToken`,
11//! `mpsc`, `oneshot`, `watch`, `timeout`, `sleep`
12//! - [`threads`] — blocking runtime using OS threads: `CancellationToken`,
13//! `mpsc`, `oneshot`, `sleep`
14
15pub mod tasks;
16pub mod threads;
17mod tracing;