{"id":16179719,"url":"https://github.com/bep/debounce","last_synced_at":"2025-05-15T00:13:53.408Z","repository":{"id":37431629,"uuid":"56920818","full_name":"bep/debounce","owner":"bep","description":"A debouncer written in Go.","archived":false,"fork":false,"pushed_at":"2024-11-27T12:47:58.000Z","size":18,"stargazers_count":128,"open_issues_count":1,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T22:39:20.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/bep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["bep"]}},"created_at":"2016-04-23T13:33:19.000Z","updated_at":"2025-03-02T14:10:50.000Z","dependencies_parsed_at":"2024-11-27T13:32:43.209Z","dependency_job_id":"ceeecbe1-ad09-4392-a968-37712233878b","html_url":"https://github.com/bep/debounce","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"ef4a90a6c96d64a5cb6a13b46efe3a2eb7fb5cb1"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fdebounce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fdebounce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fdebounce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fdebounce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bep","download_url":"https://codeload.github.com/bep/debounce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249206,"owners_count":22039029,"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-10T05:43:52.078Z","updated_at":"2025-05-15T00:13:52.894Z","avatar_url":"https://github.com/bep.png","language":"Go","funding_links":["https://github.com/sponsors/bep"],"categories":[],"sub_categories":[],"readme":"# Go Debounce\n\n[![Tests on Linux, MacOS and Windows](https://github.com/bep/debounce/workflows/Test/badge.svg)](https://github.com/bep/debounce/actions?query=workflow:Test)\n[![GoDoc](https://godoc.org/github.com/bep/debounce?status.svg)](https://godoc.org/github.com/bep/debounce)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bep/debounce)](https://goreportcard.com/report/github.com/bep/debounce)\n[![codecov](https://codecov.io/gh/bep/debounce/branch/master/graph/badge.svg)](https://codecov.io/gh/bep/debounce)\n[![Release](https://img.shields.io/github/release/bep/debounce.svg?style=flat-square)](https://github.com/bep/debounce/releases/latest)\n\n## Example\n\n```go\nfunc ExampleNew() {\n\tvar counter uint64\n\n\tf := func() {\n\t\tatomic.AddUint64(\u0026counter, 1)\n\t}\n\n\tdebounced := debounce.New(100 * time.Millisecond)\n\n\tfor i := 0; i \u003c 3; i++ {\n\t\tfor j := 0; j \u003c 10; j++ {\n\t\t\tdebounced(f)\n\t\t}\n\n\t\ttime.Sleep(200 * time.Millisecond)\n\t}\n\n\tc := int(atomic.LoadUint64(\u0026counter))\n\n\tfmt.Println(\"Counter is\", c)\n\t// Output: Counter is 3\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Fdebounce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbep%2Fdebounce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Fdebounce/lists"}