Skip to content

Repository files navigation

Build & Test Mutation testing badge NuGet Downloads

lyndychivs.Retry

A simple library for retrying and waiting for a condition to be True.

Example

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 successful

    return true;
}

Also supports Async context.

Tests

All Unit Tests can be found under the Retry.Tests namesapce.

Package

Available on:

About

A simple library for retrying and waiting for a condition to be true

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages