{"id":18682743,"url":"https://github.com/chneau/slow","last_synced_at":"2025-11-07T17:30:34.024Z","repository":{"id":74471400,"uuid":"143992718","full_name":"chneau/slow","owner":"chneau","description":"Go package for Debounce and Throttle","archived":false,"fork":false,"pushed_at":"2018-08-08T14:07:08.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T20:19:17.640Z","etag":null,"topics":["debounce","golang","lodash","throttle","underscore"],"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/chneau.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":"2018-08-08T09:39:16.000Z","updated_at":"2023-12-05T06:37:39.000Z","dependencies_parsed_at":"2023-03-06T05:00:36.753Z","dependency_job_id":null,"html_url":"https://github.com/chneau/slow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fslow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fslow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fslow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fslow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chneau","download_url":"https://codeload.github.com/chneau/slow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533457,"owners_count":19654683,"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":["debounce","golang","lodash","throttle","underscore"],"created_at":"2024-11-07T10:12:43.430Z","updated_at":"2025-11-07T17:30:33.978Z","avatar_url":"https://github.com/chneau.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slow\nGo package for Debounce and Throttle functions.  \nSee [stackoverflow answers](https://stackoverflow.com/a/25991510) for more details about what is throttle and debounce.\n\n# install\n```bash\ngo get github.com/chneau/slow\n```\n\n# usage\n```go\n    ...\n    i := 0\n    fn := func() {\n        i++\n    }\n    options := \u0026slow.Options{\n        Trailing: true,\n        Leading:  true,\n        MaxWait:  time.Millisecond * 500,\n    }\n    // options = nil // can be null, see defaults\n    throttled := slow.Throttle(fn, time.Millisecond*50, options)\n    debounced := slow.Debounce(fn, time.Millisecond*50, options)\n    // the returned functions will be debounced / throttled.\n    // so some calls will be no-op depending on the options\n    throttled()\n    throttled()\n    ...\n```\n\n# thanks\nThanks to [lodash](https://lodash.com/) from where the implementation comes from. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchneau%2Fslow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchneau%2Fslow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchneau%2Fslow/lists"}