maxinfet / mulligan Goto Github PK
View Code? Open in Web Editor NEWGeneric methods for retrying functions and actions in .NET
License: MIT License
Generic methods for retrying functions and actions in .NET
License: MIT License
I should add the ability to provide a predicate for expected exceptions. This will allow me to determine not only if we should retry from all exception types or if an exception was actually a success.
The XML comment for the TimeSpan
parameter of Retry.While
doesn't specify that a value of TimeSpan.MaxValue
means it will never timeout. The XML comment should be updated to reflect this.
Add a cancellation token so the user can cancel the retry. This would be particularly useful when setting a infinite timeout.
Add the ability to perform a retry async. I believe this will require me to stop using Thread.Sleep
and use Task.Wait
but I will need to do more research on that to be certain.
Add a data field to the retry model so that he user can return any type of state they want other than the result as part of executing their function. This will allow the user to pass back information they would need to debug their retry without needing to set breaks. Also this could be very valuable for passing back information they would like to have logged.
There is a lot of duplicate code in each of the Retry.While
methods that through overloads or functional programming should be removed.
Add Retry.For
functions that will allow the user to retry until it passes or until it retries X times.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.