Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #30 #39

Merged
merged 1 commit into from
May 4, 2015
Merged

Fix for issue #30 #39

merged 1 commit into from
May 4, 2015

Conversation

Stephan202
Copy link
Contributor

From the commit message:

Introduce StopStrategies#stopAfterDelay(long, TimeUnit).

For consistency with the AttemptTimeLimiters and WaitStrategies classes,
StopStrategies now also accepts (long, TimeUnit) pairs. The original method has
been deprecated in favor of its new overload.

The unit test for the now-deprecated method was fixed and a unit test for the
new method was added.

Other than that all I can say is that I tried to stay as close as possible to the existing coding style. Let me know if you feel further changes are required.

For consistency with the AttemptTimeLimiters and WaitStrategies classes,
StopStrategies now also accepts (long, TimeUnit) pairs. The original method has
been deprecated in favor of its new overload.

The unit test for the now-deprecated method was fixed and a unit test for the
new method was added.
@rholder
Copy link
Owner

rholder commented May 3, 2015

That looks great. Thanks!

@rholder rholder added this to the 2.0.0 milestone May 3, 2015
rholder added a commit that referenced this pull request May 4, 2015
@rholder rholder merged commit b2cd04d into rholder:master May 4, 2015
@Stephan202 Stephan202 deleted the fix-for-issue-30 branch May 4, 2015 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants