{"id":21356774,"url":"https://github.com/rousan/settimeout-rs","last_synced_at":"2025-07-13T00:31:39.630Z","repository":{"id":57667118,"uuid":"244221763","full_name":"rousan/settimeout-rs","owner":"rousan","description":"A Rust library to create a std::future::Future implementation to be used in any async function","archived":false,"fork":false,"pushed_at":"2020-03-02T06:25:56.000Z","size":14,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-11T14:38:43.907Z","etag":null,"topics":["future","rust","settimeout"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rousan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-01T20:51:43.000Z","updated_at":"2024-07-20T11:52:42.000Z","dependencies_parsed_at":"2022-09-02T14:00:32.391Z","dependency_job_id":null,"html_url":"https://github.com/rousan/settimeout-rs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rousan%2Fsettimeout-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rousan%2Fsettimeout-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rousan%2Fsettimeout-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rousan%2Fsettimeout-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rousan","download_url":"https://codeload.github.com/rousan/settimeout-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225844842,"owners_count":17533160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["future","rust","settimeout"],"created_at":"2024-11-22T04:36:09.123Z","updated_at":"2024-11-22T04:36:09.734Z","avatar_url":"https://github.com/rousan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Crate](https://img.shields.io/crates/v/settimeout.svg)](https://crates.io/crates/settimeout)\n[![API](https://docs.rs/settimeout/badge.svg)](https://docs.rs/settimeout/)\n[![Minimum rustc version](https://img.shields.io/badge/rustc-1.39+-green.svg)](https://github.com/rousan/settimeout-rs)\n\n# settimeout-rs\n\nProvides an implementation of `std::future::Future` trait to be ready at some point. Sometimes,\nit is needed a `std::future::Future` trait instance for testing purpose in any `async` function.\n\n## Usage\n\nAdd this to your Cargo.toml:\n\n```toml\n[dependencies]\nsettimeout = \"0.1.2\"\n```\n\n## Examples\n\nCreate a simple `std::future::Future` implementation:\n\n```rust\nuse futures::executor::block_on;\nuse std::time::Duration;\nuse settimeout::set_timeout;\n\nasync fn foo() {\n  println!(\"The Future will be ready after some time\");\n  set_timeout(Duration::from_secs(5)).await;\n  println!(\"Now, it is ready\");\n}\n\nfn main() {\n   block_on(foo());\n}\n```\n\n## Contributing\n\nYour PRs and stars are always welcome.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frousan%2Fsettimeout-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frousan%2Fsettimeout-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frousan%2Fsettimeout-rs/lists"}