https://github.com/lyndychivs/retry
A simple library for retrying and waiting for a condition to be true
https://github.com/lyndychivs/retry
engine poll polling retry until wait
Last synced: 27 days ago
JSON representation
A simple library for retrying and waiting for a condition to be true
- Host: GitHub
- URL: https://github.com/lyndychivs/retry
- Owner: lyndychivs
- License: mit
- Created: 2024-08-15T00:27:37.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-09-07T09:03:00.000Z (about 1 month ago)
- Last Synced: 2025-09-17T16:58:41.420Z (about 1 month ago)
- Topics: engine, poll, polling, retry, until, wait
- Language: C#
- Homepage: https://lyndychivs.github.io/Retry/
- Size: 142 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://dashboard.stryker-mutator.io/reports/github.com/lyndychivs/Retry/master)
[](https://www.nuget.org/packages/lyndychivs.Retry/)# lyndychivs.Retry
A simple library for retrying and waiting for a condition to be True.## Example
```csharp
var maxWaitTime = TimeSpan.FromSeconds(10);
var pollingInterval = TimeSpan.FromSeconds(1);var retry = new Retry(maxWaitTime, pollingInterval);
retry.Until(DoSomething);
bool DoSomething()
{
// do something
// return true if successful
// return false if not successfulreturn true;
}
```## Tests
All Unit Tests can be found under the [Retry.Tests](https://github.com/lyndychivs/Retry/tree/master/Retry.Tests) namesapce.## Package
Available on:
- [GitHub Packages - lyndychivs.Retry](https://github.com/lyndychivs/Retry/pkgs/nuget/lyndychivs.Retry)
- [Nuget Packages - lyndychivs.Retry](https://www.nuget.org/packages/lyndychivs.Retry/)