3 releases (breaking)
0.3.0 | Sep 28, 2024 |
---|---|
0.2.0 | Jan 18, 2024 |
0.1.0 | Oct 8, 2023 |
#712 in Concurrency
112 downloads per month
7KB
71 lines
Threatpool
Threatpool is a simple thread pool which focuses on simplicity.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
lib.rs
:
Threatpool is a simple thread pool with focus on simplicity.
Example
use threatpool::ThreadPool;
let pool = ThreadPool::new(4);
pool.execute(|| {
// Simulate some task
println!("Hello, World");
});