{"id":13526335,"url":"https://github.com/cenkalti/backoff","last_synced_at":"2025-09-09T21:11:25.581Z","repository":{"id":14480367,"uuid":"17192780","full_name":"cenkalti/backoff","owner":"cenkalti","description":"⏱ The exponential backoff algorithm in Go","archived":false,"fork":false,"pushed_at":"2025-02-27T12:53:06.000Z","size":140,"stargazers_count":3669,"open_issues_count":5,"forks_count":194,"subscribers_count":28,"default_branch":"v5","last_synced_at":"2025-05-13T14:06:45.568Z","etag":null,"topics":["golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"nightscout/cgm-remote-monitor","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cenkalti.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-02-26T00:00:16.000Z","updated_at":"2025-05-13T07:20:52.000Z","dependencies_parsed_at":"2023-01-13T17:58:17.327Z","dependency_job_id":"def9d588-1bf8-426c-8dbc-1b4ff539d70b","html_url":"https://github.com/cenkalti/backoff","commit_stats":{"total_commits":125,"total_committers":31,"mean_commits":4.032258064516129,"dds":"0.32799999999999996","last_synced_commit":"720b78985a65c0452fd37bb155c7cac4157a7c45"},"previous_names":["cenk-zzz/backoff","cenk/backoff"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkalti%2Fbackoff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkalti%2Fbackoff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkalti%2Fbackoff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenkalti%2Fbackoff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cenkalti","download_url":"https://codeload.github.com/cenkalti/backoff/tar.gz/refs/heads/v5","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253967858,"owners_count":21992251,"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":["golang"],"created_at":"2024-08-01T06:01:28.190Z","updated_at":"2025-05-13T15:00:22.696Z","avatar_url":"https://github.com/cenkalti.png","language":"Go","funding_links":[],"categories":["开源类库","Go","Open source library"],"sub_categories":["算法","Algorithm"],"readme":"# Exponential Backoff [![GoDoc][godoc image]][godoc]\n\nThis is a Go port of the exponential backoff algorithm from [Google's HTTP Client Library for Java][google-http-java-client].\n\n[Exponential backoff][exponential backoff wiki]\nis an algorithm that uses feedback to multiplicatively decrease the rate of some process,\nin order to gradually find an acceptable rate.\nThe retries exponentially increase and stop increasing when a certain threshold is met.\n\n## Usage\n\nImport path is `github.com/cenkalti/backoff/v5`. Please note the version part at the end.\n\nFor most cases, use `Retry` function. See [example_test.go][example] for an example.\n\nIf you have specific needs, copy `Retry` function (from [retry.go][retry-src]) into your code and modify it as needed.\n\n## Contributing\n\n* I would like to keep this library as small as possible.\n* Please don't send a PR without opening an issue and discussing it first.\n* If proposed change is not a common use case, I will probably not accept it.\n\n[godoc]: https://pkg.go.dev/github.com/cenkalti/backoff/v5\n[godoc image]: https://godoc.org/github.com/cenkalti/backoff?status.png\n\n[google-http-java-client]: https://github.com/google/google-http-java-client/blob/da1aa993e90285ec18579f1553339b00e19b3ab5/google-http-client/src/main/java/com/google/api/client/util/ExponentialBackOff.java\n[exponential backoff wiki]: http://en.wikipedia.org/wiki/Exponential_backoff\n\n[retry-src]: https://github.com/cenkalti/backoff/blob/v5/retry.go\n[example]: https://github.com/cenkalti/backoff/blob/v5/example_test.go\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenkalti%2Fbackoff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcenkalti%2Fbackoff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenkalti%2Fbackoff/lists"}