{"id":16726877,"url":"https://github.com/lpil/repeatedly","last_synced_at":"2025-07-12T05:02:51.335Z","repository":{"id":215624698,"uuid":"739420572","full_name":"lpil/repeatedly","owner":"lpil","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-16T15:13:28.000Z","size":15,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-14T22:16:20.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Gleam","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/lpil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2024-01-05T14:23:39.000Z","updated_at":"2025-03-16T15:13:32.000Z","dependencies_parsed_at":"2024-02-22T11:31:48.690Z","dependency_job_id":"cc9fe779-5646-4496-b2e3-0ff55e430d66","html_url":"https://github.com/lpil/repeatedly","commit_stats":null,"previous_names":["lpil/repeatedly"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lpil/repeatedly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frepeatedly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frepeatedly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frepeatedly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frepeatedly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpil","download_url":"https://codeload.github.com/lpil/repeatedly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frepeatedly/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264940367,"owners_count":23686241,"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":"2024-10-12T22:54:55.697Z","updated_at":"2025-07-12T05:02:51.320Z","avatar_url":"https://github.com/lpil.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# repeatedly\n\nCall a function repeatedly with a delay between each call.\n\n[![Package Version](https://img.shields.io/hexpm/v/repeatedly)](https://hex.pm/packages/repeatedly)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/repeatedly/)\n\nWorks on both Erlang and JavaScript runtimes! This means it's good for little scripts,\nbut if you're writing a full OTP program then this isn't the right library to use, and\nsomething that exposes OTP compatible APIs would be better.\n\n```sh\ngleam add repeatedly\n```\n```gleam\nimport repeatedly\n\npub fn main() {\n  // Print every 500ms\n  let repeater = repeatedly.call(500, Nil, fn(_state, i) {\n    io.println(\"Call number \" \u003c\u003e int.to_string(i))\n  })\n\n  // And at some point later, stop it\n  repeatedly.stop(repeater)\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/repeatedly\u003e.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Frepeatedly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpil%2Frepeatedly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Frepeatedly/lists"}