rholder / guava-retrying

This is a small extension to Google's Guava library to allow for the creation of configurable retrying strategies for an arbitrary function call, such as something that talks to a remote service with flaky uptime.
Apache License 2.0
1.43k stars 275 forks source link

Not calling Thread.sleep() if sleepTime is Zero #1 #101

Open r0goyal opened 3 years ago

r0goyal commented 3 years ago

Zero sleepTime implies there is no need to sleep and hence call to Thread.sleep() is redundant