{"id":59094,"library":"tokio-current-thread","title":"Tokio Current Thread","description":"Single threaded executor which manages many tasks concurrently on the current thread.","status":"deprecated","version":"0.1.7","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/tokio","tags":["tokio","async","executor","single-threaded"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntokio-current-thread = \"0.1.7\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tokio-current-thread","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"CurrentThread","correct":"use tokio_current_thread::CurrentThread;"}],"quickstart":{"code":"use tokio_current_thread::CurrentThread;\n\nfn main() {\n    let mut executor = CurrentThread::new();\n    executor.spawn(async {\n        println!(\"Hello from current thread executor\");\n    });\n    executor.run().unwrap();\n}","lang":"rust","description":"Runs a single-threaded Tokio executor on the current thread."},"warnings":[{"fix":"Use `tokio::runtime::Runtime::new_current_thread()` instead.","message":"Deprecated in favor of tokio::runtime::current_thread (now part of tokio crate).","severity":"breaking","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'async':17 'concurr':11 'current':2,14 'executor':6,18 'manag':8 'mani':9 'singl':4,20 'single-thread':19 'task':10 'thread':3,5,15,21 'tokio':1,16","created_at":"2026-06-16T16:50:06.058540+00:00","updated_at":"2026-06-16T16:50:06.058540+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-current-thread/","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}}