{"id":16817982,"url":"https://github.com/promatik/java-delegate-util","last_synced_at":"2025-07-11T00:04:53.747Z","repository":{"id":151434269,"uuid":"84949953","full_name":"promatik/Java-Delegate-Util","owner":"promatik","description":"Easy way to add timer events to java","archived":false,"fork":false,"pushed_at":"2018-09-05T08:51:35.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T13:32:15.336Z","etag":null,"topics":["delegate","java","java-8","utils"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/promatik.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":"2017-03-14T13:05:12.000Z","updated_at":"2018-09-05T08:51:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bcd7470-e0b8-4a48-9516-c754906261d3","html_url":"https://github.com/promatik/Java-Delegate-Util","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/promatik/Java-Delegate-Util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promatik%2FJava-Delegate-Util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promatik%2FJava-Delegate-Util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promatik%2FJava-Delegate-Util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promatik%2FJava-Delegate-Util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/promatik","download_url":"https://codeload.github.com/promatik/Java-Delegate-Util/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promatik%2FJava-Delegate-Util/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264696170,"owners_count":23650933,"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":["delegate","java","java-8","utils"],"created_at":"2024-10-13T10:48:53.805Z","updated_at":"2025-07-11T00:04:53.729Z","avatar_url":"https://github.com/promatik.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java-Delegate-Util\nEasy way to add timer events to java\n\n## Usage examples\n\nRun every 10 seconds starting in 10 seconds\n```java\nDelegate.run(() -\u003e runEveryTenSeconds(), 10, 10, TimeUnit.SECONDS);\n```\n\n\u003e```\n\u003e 15:16:29\u003e 10s\n\u003e 15:16:39\u003e 10s\n\u003e 15:16:49\u003e 10s\n\nRun once, in 5 seconds\n```java\nDelegate.run(() -\u003e myFunction(), 5, TimeUnit.SECONDS);\n```\n\n\u003e```\n\u003e 15:17:44\u003e 5s\n\u003e \n\nInline code\n```java\nDelegate.run(() -\u003e Utils.log(String.valueOf(i++) + \"s\"), 0, 1, TimeUnit.SECONDS);\n```\n\n\u003e```\n\u003e 15:18:38\u003e 0s\n\u003e 15:18:39\u003e 1s\n\u003e 15:18:40\u003e 2s\n\u003e 15:18:41\u003e 3s\n\nStop delegate\n\n```java\nDelegate d = Delegate.run(() -\u003e myFunction(), 1, TimeUnit.SECONDS);\n...\nd.cancel();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpromatik%2Fjava-delegate-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpromatik%2Fjava-delegate-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpromatik%2Fjava-delegate-util/lists"}