{"id":58384,"library":"tokio-threadpool","title":"tokio-threadpool","description":"A task scheduler backed by a work-stealing thread pool","status":"deprecated","version":"0.1.18","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/tokio","tags":["tokio","threadpool","async","scheduler","deprecated"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntokio-threadpool = \"0.1.18\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tokio-threadpool","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"ThreadPool","correct":"use tokio_threadpool::ThreadPool;"}],"quickstart":{"code":"use tokio_threadpool::ThreadPool;\nuse futures::future::lazy;\n\nfn main() {\n    let pool = ThreadPool::new();\n    pool.spawn(lazy(|| {\n        println!(\"Hello from thread pool\");\n        Ok(())\n    }));\n    pool.shutdown().wait().unwrap();\n}","lang":"rust","description":"Create and use a work-stealing thread pool"},"warnings":[{"fix":"Use `tokio::runtime::Runtime` or `tokio::task::spawn_blocking`","message":"Deprecated in favor of `tokio::runtime`","severity":"breaking","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'async':17 'back':7 'deprec':19 'pool':14 'schedul':6,18 'steal':12 'task':5 'thread':13 'threadpool':3,16 'tokio':2,15 'tokio-threadpool':1 'work':11 'work-steal':10","created_at":"2026-06-16T16:21:55.528028+00:00","updated_at":"2026-06-16T16:21:55.528028+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/tokio-rs/tokio","github":"https://github.com/tokio-rs/tokio","docs":"https://docs.rs/tokio-threadpool/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","networking"],"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}}