#async-task #tokio #context

atlas-ctx

An asynchronous task context management library

5 unstable releases

Uses new Rust 2024

new 0.3.1 Dec 21, 2025
0.3.0 Dec 21, 2025
0.2.0 Dec 21, 2025
0.1.1 Dec 21, 2025
0.1.0 Dec 21, 2025

#877 in Asynchronous

MIT license

250KB
7K SLoC

atlas-ctx

An experimental asynchronous task context management library for Rust.

⚠️ Warning: This library is experimental and unstable. The API may change significantly between versions. Use in production at your own risk.

Features

  • Hierarchical task context management
  • Cancellation propagation
  • Pause/resume functionality
  • collecting results from child tasks
  • Semaphore-based concurrency control
  • Scope-based value sharing
  • Customizable logging

Installation

Add this to your Cargo.toml:

[dependencies]
atlas-ctx = "0.1"

Quick Example

use atlas::{Atlas, Builder};

#[tokio::main]
async fn main() {
    let atlas = Builder::new().build();

    // Create and manage async task contexts
    // See documentation for more details
}

Requirements

  • Rust 2024 edition
  • Tokio runtime

License

MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Contributing

Contributions are welcome! Please note that this is an experimental project and the API is subject to change.

Dependencies

~3.5–7MB
~114K SLoC