{"id":57625,"library":"tokio-timer","title":"Tokio Timer","description":"Timer facilities for Tokio, providing delay and interval primitives.","status":"active","version":"0.2.13","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/tokio","tags":["async","timer","tokio","time","scheduling"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntokio-timer = \"0.2.13\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tokio-timer","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"sleep","correct":"use tokio::time::sleep;"}],"quickstart":{"code":"use tokio::time::{sleep, Duration};\n\n#[tokio::main]\nasync fn main() {\n    sleep(Duration::from_secs(1)).await;\n    println!(\"Waited 1 second\");\n}","lang":"rust","description":"Use tokio::time::sleep to pause execution asynchronously."},"warnings":[{"fix":"Add tokio = { version = \"1\", features = [\"time\"] } to Cargo.toml.","message":"Requires the 'time' feature flag on tokio (enabled by default in full).","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'async':12 'delay':8 'facil':4 'interv':10 'primit':11 'provid':7 'schedul':16 'time':15 'timer':2,3,13 'tokio':1,6,14","created_at":"2026-06-16T15:51:05.595445+00:00","updated_at":"2026-06-16T15:51:05.595445+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-timer/","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}}