{"id":15374718,"url":"https://github.com/mrtazz/backofftimer","last_synced_at":"2025-06-11T12:36:39.684Z","repository":{"id":66811916,"uuid":"76701345","full_name":"mrtazz/BackoffTimer","owner":"mrtazz","description":"a simple backoff timer written in rust","archived":false,"fork":false,"pushed_at":"2016-12-20T03:36:33.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T02:29:06.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/mrtazz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-12-17T03:24:12.000Z","updated_at":"2023-07-25T14:06:08.000Z","dependencies_parsed_at":"2023-02-25T02:45:14.616Z","dependency_job_id":null,"html_url":"https://github.com/mrtazz/BackoffTimer","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/mrtazz%2FBackoffTimer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2FBackoffTimer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2FBackoffTimer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2FBackoffTimer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtazz","download_url":"https://codeload.github.com/mrtazz/BackoffTimer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2FBackoffTimer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259265526,"owners_count":22831183,"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-01T13:59:35.648Z","updated_at":"2025-06-11T12:36:39.663Z","avatar_url":"https://github.com/mrtazz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BackoffTimer\n\n[![Build Status](https://travis-ci.org/mrtazz/BackoffTimer.svg?branch=master)](https://travis-ci.org/mrtazz/BackoffTimer)\n[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n\n## Overview\n\nBackoffTimer is a rust library that implements different algorithms for\nbackoff timers.\n\n\n```rust\nuse backoff_timer::BackoffTimer;\nuse backoff_timer::ExponentialBackoffTimer;\n\n/// exponentially back off and wait at most 5 seconds\nlet mut timer = ExponentialBackoffTimer::new(5);\nlet mut timer = ExponentialBackoffTimer::new(6);\nmatch timer.wait() {\n    Ok(time_waited) =\u003e assert_eq!(time_waited, 2),\n    Err(e) =\u003e panic!(e),\n}\nassert_eq!(timer.is_done(), false);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtazz%2Fbackofftimer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtazz%2Fbackofftimer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtazz%2Fbackofftimer/lists"}