std-threadpool

Crates.iostd-threadpool
lib.rsstd-threadpool
version0.1.0
sourcesrc
created_at2024-01-06 03:34:47.014877
updated_at2024-01-06 03:34:47.014877
descriptionThreadpool implementation
homepage
repositoryhttps://github.com/Logan-010/std-threadpool
max_upload_size
id1090723
size4,973
Logan (Logan-010)

documentation

https://docs.rs/std-threadpool

README

Basic thread pool implementation using some code from the rust book.

Basic usage:

//create a new thread pool with the specified number of threads
let workers: ThreadPool = ThreadPool::new(4);

//execute a closure from the thread pool
workers.execute(|| {
    println!("Hello from a worker thread!");
}).unwrap();

Go to https://docs.rs/std-threadpool/

Commit count: 0

cargo fmt