10000 GitHub - lyndychivs/Retry: A simple library for retrying and waiting for a condition to be true
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lyndychivs/Retry

Repository files navigation

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;
}

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

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors 2

  •  
  •  

Languages

0