{"id":58153,"library":"scoped-threadpool","title":"Scoped Threadpool","description":"A library for scoped and cached threadpools in Rust.","status":"active","version":"0.1.9","language":"rust","source_language":null,"source_url":"https://github.com/Kimundi/scoped-threadpool-rs","tags":["threadpool","scoped","concurrency","parallelism"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nscoped_threadpool = \"0.1.9\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add scoped_threadpool","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Pool","correct":"use scoped_threadpool::Pool;"}],"quickstart":{"code":"use scoped_threadpool::Pool;\n\nfn main() {\n    let mut pool = Pool::new(4);\n    pool.scoped(|scope| {\n        for _ in 0..8 {\n            scope.execute(|| {\n                println!(\"Hello from a scoped thread!\");\n            });\n        }\n    });\n}","lang":"rust","description":"Create a scoped threadpool and execute tasks."},"warnings":[{"fix":"Ensure only one scoped block is active at a time; consider using separate pools for parallelism.","message":"The `scoped` method borrows the pool mutably, preventing concurrent scoped calls.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'cach':8 'concurr':14 'librari':4 'parallel':15 'rust':11 'scope':1,6,13 'threadpool':2,9,12","created_at":"2026-06-16T16:13:14.803160+00:00","updated_at":"2026-06-16T16:13:14.803160+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/Kimundi/scoped-threadpool-rs","github":"https://github.com/Kimundi/scoped-threadpool-rs","docs":"https://docs.rs/scoped_threadpool/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","utility"],"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}}