{"id":13338124,"url":"https://github.com/kaxori/Action-Repeater","last_synced_at":"2025-03-11T08:32:25.065Z","repository":{"id":177672369,"uuid":"660734564","full_name":"kaxori/Action-Repeater","owner":"kaxori","description":"Repeats an action after defined timeout period.","archived":false,"fork":false,"pushed_at":"2023-07-28T15:55:57.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-23T20:12:17.661Z","etag":null,"topics":["esp32","toit","toit-language"],"latest_commit_sha":null,"homepage":"","language":null,"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/kaxori.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}},"created_at":"2023-06-30T17:54:26.000Z","updated_at":"2024-04-29T09:38:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"2337d6ac-47a2-498e-97ff-b1d4a370c168","html_url":"https://github.com/kaxori/Action-Repeater","commit_stats":null,"previous_names":["kaxori/actionrepeater"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaxori%2FAction-Repeater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaxori%2FAction-Repeater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaxori%2FAction-Repeater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaxori%2FAction-Repeater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaxori","download_url":"https://codeload.github.com/kaxori/Action-Repeater/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243000925,"owners_count":20219770,"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":["esp32","toit","toit-language"],"created_at":"2024-07-29T19:15:31.623Z","updated_at":"2025-03-11T08:32:25.053Z","avatar_url":"https://github.com/kaxori.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Action_Repeater\nRepeats an action after defined timeout period.\n\n\n## Install\n```\njag pkg install action_repeater\n```\n\n## Usage\nA simple usage example.\n``` toit\nimport action_repeater show *\n\n\nSTEP_DELAY ::= 10_000\nstartTime := ?\n\ndtStr-\u003e string:\n  return \"$(%6.1f (Duration.since startTime).in_ms/1000.0)s :\"\n\n\nmain:\n  print \"\\n\\n\\nTest of ActionRepeater\\n\"\n  count := 0\n  startTime = Time.now\n\n  action := ActionRepeater --timeout_ms=1_000 --action=::\n    ++count\n    print  dtStr + \"action code called #$count\"\n\n  sleep --ms=1000\n\n  action.start 200\n  sleep --ms=1000\n  \n  action.start 2000\n  sleep --ms=STEP_DELAY\n\n  action.stop\n  sleep --ms=STEP_DELAY\n\n  action.trigger\n  action.trigger\n\n```\nSee the `examples` folder for more examples.\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\n\n[tracker]: https://github.com/kaxori/action-repeater/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaxori%2FAction-Repeater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaxori%2FAction-Repeater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaxori%2FAction-Repeater/lists"}