async-task-executor 0.1.2

A lightweight Rust library for building extensible asynchronous task executors, designed for handling large-scale multitasking in server environments.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use async_taskex::SharedData;

#[derive(Default)]
struct SimpleSharedData {
    counter: i32,
}

impl SharedData for SimpleSharedData {}

#[async_std::test]
async fn test_shared_data() {
    let shared_data = SimpleSharedData::default();
    assert_eq!(shared_data.counter, 0);
}