6 releases

0.2.4 Feb 19, 2023
0.2.3 Jan 23, 2023
0.2.2 Nov 27, 2022
0.1.0 Oct 28, 2022

#11 in #task-pool


Used in 3 crates (2 directly)

MIT/Apache

14KB
276 lines

Hyena

Crates.io Documentation


lib.rs:

Hyena is a simple, fast, and safe async task pool.

Examples

// create a new task pool
let task_pool = TaskPool::new().unwrap();

// spawn a task
let task = task_pool.spawn(async {
    // do some async work
    2 + 2
});

// wait for the task to complete
let result = task.block_on();
assert_eq!(result, 4);

Dependencies

~1MB
~15K SLoC