{"id":57418,"library":"threadpool","title":"Threadpool","description":"A thread pool for running a number of jobs on a fixed set of worker threads.","status":"active","version":"1.8.1","language":"rust","source_language":null,"source_url":"https://github.com/rust-threadpool/rust-threadpool","tags":["thread","pool","concurrency"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nthreadpool = \"1.8.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add threadpool","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"ThreadPool","correct":"use threadpool::ThreadPool;"}],"quickstart":{"code":"use threadpool::ThreadPool;\n\nlet pool = ThreadPool::new(4);\nfor _ in 0..8 {\n    pool.execute(|| {\n        println!(\"Hello from a thread!\");\n    });\n}\npool.join();","lang":"rust","description":"Creates a thread pool with 4 workers and executes 8 jobs."},"warnings":[{"fix":"Use move closures or Arc for shared data.","message":"Jobs are executed on separate threads; ensure closures are Send + 'static.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'concurr':20 'fix':13 'job':10 'number':8 'pool':4,19 'run':6 'set':14 'thread':3,17,18 'threadpool':1 'worker':16","created_at":"2026-06-16T15:41:33.274634+00:00","updated_at":"2026-06-16T15:41:33.274634+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rust-threadpool/rust-threadpool","github":"https://github.com/rust-threadpool/rust-threadpool","docs":"https://docs.rs/threadpool/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}