{"id":20696941,"url":"https://github.com/smol-rs/waker-fn","last_synced_at":"2025-04-12T16:38:38.674Z","repository":{"id":54512602,"uuid":"264486867","full_name":"smol-rs/waker-fn","owner":"smol-rs","description":"Convert closures into wakers","archived":false,"fork":false,"pushed_at":"2025-01-19T16:05:16.000Z","size":28,"stargazers_count":45,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T19:14:19.557Z","etag":null,"topics":["rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smol-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-16T17:13:03.000Z","updated_at":"2025-01-19T16:05:17.000Z","dependencies_parsed_at":"2025-02-12T06:08:27.954Z","dependency_job_id":"8dc13f65-c409-44f9-9577-2a1940e8bda7","html_url":"https://github.com/smol-rs/waker-fn","commit_stats":{"total_commits":29,"total_committers":5,"mean_commits":5.8,"dds":0.3793103448275862,"last_synced_commit":"4aac388632c3680d8a1b219e72e0ff58ab31281b"},"previous_names":["stjepang/waker-fn"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smol-rs%2Fwaker-fn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smol-rs%2Fwaker-fn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smol-rs%2Fwaker-fn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smol-rs%2Fwaker-fn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smol-rs","download_url":"https://codeload.github.com/smol-rs/waker-fn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248397997,"owners_count":21097227,"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":["rust"],"created_at":"2024-11-17T00:16:04.550Z","updated_at":"2025-04-12T16:38:38.656Z","avatar_url":"https://github.com/smol-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# waker-fn\n\n[![Build](https://github.com/smol-rs/waker-fn/workflows/Build%20and%20test/badge.svg)](\nhttps://github.com/smol-rs/waker-fn/actions)\n[![License](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue.svg)](\nhttps://github.com/smol-rs/waker-fn)\n[![Cargo](https://img.shields.io/crates/v/waker-fn.svg)](\nhttps://crates.io/crates/waker-fn)\n[![Documentation](https://docs.rs/waker-fn/badge.svg)](\nhttps://docs.rs/waker-fn)\n\nConvert closures into wakers.\n\nA [`Waker`] is just a fancy callback. This crate converts regular closures into wakers.\n\n[`Waker`]: https://doc.rust-lang.org/std/task/struct.Waker.html\n\n## Examples\n\n```rust\nuse waker_fn::waker_fn;\n\nlet waker = waker_fn(|| println!(\"woken\"));\n\nwaker.wake_by_ref(); // Prints \"woken\".\nwaker.wake();        // Prints \"woken\".\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n#### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmol-rs%2Fwaker-fn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmol-rs%2Fwaker-fn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmol-rs%2Fwaker-fn/lists"}