{"id":17693915,"url":"https://github.com/ogios/interval-task","last_synced_at":"2026-02-23T12:49:44.830Z","repository":{"id":244609928,"uuid":"815753845","full_name":"ogios/interval-task","owner":"ogios","description":"Repeatedly execute a \"Task\" with fixed time delay. more than \"setInterval\"","archived":false,"fork":false,"pushed_at":"2025-01-01T06:34:15.000Z","size":39,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T21:46:39.649Z","etag":null,"topics":["multithreading","rust","setinterval","task-scheduler"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/interval-task","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/ogios.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-16T03:42:54.000Z","updated_at":"2025-01-01T06:34:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d4020df-5853-4522-8bdc-4055bbc8c097","html_url":"https://github.com/ogios/interval-task","commit_stats":null,"previous_names":["ogios/interval-task"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ogios/interval-task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Finterval-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Finterval-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Finterval-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Finterval-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ogios","download_url":"https://codeload.github.com/ogios/interval-task/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogios%2Finterval-task/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29743281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["multithreading","rust","setinterval","task-scheduler"],"created_at":"2024-10-24T13:47:22.798Z","updated_at":"2026-02-23T12:49:44.798Z","avatar_url":"https://github.com/ogios.png","language":"Rust","readme":"# interval-task\n\nThis crate provides a [`runner`][`crate::runner`] to simulate what [`setInterval`](https://developer.mozilla.org/en-US/docs/Web/API/setInterval) does in JS which is repeatedly executing a task every given [`Duration`][`std::time::Duration`].\n\nBut since in rust we can't have that kind of flexibility like js, the runner here provides much more usage except for just pass in the function and delay. Also provide a [channel][`channel`] which wraps up [runner][`crate::runner`]\n\nPlease be aware that you have read [`runner`] doc.\n\nThis crate uses [`spin_sleep`] which provides accurate sleep. and i optimized to make the loop more accurate.\n\n_Purely thread with no async support_.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogios%2Finterval-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fogios%2Finterval-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogios%2Finterval-task/lists"}