{"id":24116208,"url":"https://github.com/aib/waitable","last_synced_at":"2026-06-13T15:31:59.541Z","repository":{"id":65131674,"uuid":"582650283","full_name":"aib/waitable","owner":"aib","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-27T14:41:58.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T21:18:14.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-27T13:27:12.000Z","updated_at":"2022-12-27T13:27:31.000Z","dependencies_parsed_at":"2023-01-03T10:17:49.745Z","dependency_job_id":null,"html_url":"https://github.com/aib/waitable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fwaitable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fwaitable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fwaitable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fwaitable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aib","download_url":"https://codeload.github.com/aib/waitable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241150264,"owners_count":19918340,"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":[],"created_at":"2025-01-11T06:15:47.185Z","updated_at":"2026-06-13T15:31:54.524Z","avatar_url":"https://github.com/aib.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Waitable\n\nA synchronized (atomic) value container implementing the Mutex+Condvar pattern for efficient blocking waits\n\n## Usage\n\n```rust\nuse std::sync::Arc;\nuse waitable::Waitable;\n\nlet w = Arc::new(Waitable::new(0));\n\nprintln!(\"Spawning thread...\");\n\nlet join_handle = {\n\tlet w = w.clone();\n\tstd::thread::spawn(move || {\n\t\tprintln!(\"Thread waiting...\");\n\t\tw.wait(\u002642);\n\t\tprintln!(\"Thread done waiting\");\n\t})\n};\n\nprintln!(\"Waiting to set...\");\nstd::thread::sleep(std::time::Duration::from_millis(500));\n\nprintln!(\"Setting...\");\nw.set(42);\n\njoin_handle.join().unwrap();\nprintln!(\"All done\");\n```\n\n```\nSpawning thread...\nWaiting to set...\nThread waiting...\nSetting...\nThread done waiting\nAll done\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faib%2Fwaitable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faib%2Fwaitable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faib%2Fwaitable/lists"}