{"id":29550348,"url":"https://github.com/codesoap/backoff","last_synced_at":"2025-10-17T23:18:27.468Z","repository":{"id":279658396,"uuid":"939504608","full_name":"codesoap/backoff","owner":"codesoap","description":"A most simple and flexible exponential backoff implementation for Go","archived":false,"fork":false,"pushed_at":"2025-04-24T14:05:30.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T09:11:24.364Z","etag":null,"topics":["error-handling","exponential-backoff","minimal","rate-limiting"],"latest_commit_sha":null,"homepage":"","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/codesoap.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":"2025-02-26T16:40:42.000Z","updated_at":"2025-04-24T14:05:34.000Z","dependencies_parsed_at":"2025-02-26T18:44:10.485Z","dependency_job_id":null,"html_url":"https://github.com/codesoap/backoff","commit_stats":null,"previous_names":["codesoap/backoff"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codesoap/backoff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesoap%2Fbackoff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesoap%2Fbackoff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesoap%2Fbackoff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesoap%2Fbackoff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesoap","download_url":"https://codeload.github.com/codesoap/backoff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesoap%2Fbackoff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265692376,"owners_count":23812197,"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":["error-handling","exponential-backoff","minimal","rate-limiting"],"created_at":"2025-07-18T02:33:03.991Z","updated_at":"2025-10-17T23:18:27.457Z","avatar_url":"https://github.com/codesoap.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a minimalist exponential backoff implementation for Go. It\nfocuses on absolute simplicity and only contains two functions, of which\nyou may not even need the second one.\n\nIt provides high performance and does not use floating-point arithmetic.\n\nSee https://pkg.go.dev/github.com/codesoap/backoff for the full\ndocumentation.\n\n# Usage\nHere is a simple example; more can be found in\n[the documentation](https://pkg.go.dev/github.com/codesoap/backoff):\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/codesoap/backoff\"\n)\n\nfunc myActionThatMightFail() bool {\n\t// Emulate an action that always fails for demonstration purposes:\n\treturn false\n}\n\nfunc main() {\n\tlimiter := \u0026backoff.FailLimiter{}\n\tfor i := 1; i \u003c= 12; i++ {\n\t\ttried := limiter.Try(myActionThatMightFail)\n\t\tif tried {\n\t\t\tfmt.Printf(\"#%02d: Executed action.\\n\", i)\n\t\t} else {\n\t\t\tfmt.Printf(\"#%02d: Skipped action.\\n\", i)\n\t\t}\n\t}\n\t// Output:\n\t// #01: Executed action.\n\t// #02: Skipped action.\n\t// #03: Executed action.\n\t// #04: Skipped action.\n\t// #05: Skipped action.\n\t// #06: Executed action.\n\t// #07: Skipped action.\n\t// #08: Skipped action.\n\t// #09: Skipped action.\n\t// #10: Skipped action.\n\t// #11: Executed action.\n\t// #12: Skipped action.\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesoap%2Fbackoff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesoap%2Fbackoff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesoap%2Fbackoff/lists"}