guava-retrying icon indicating copy to clipboard operation
guava-retrying copied to clipboard

AttemptTimeLimiter does not have to be generic

Open james-hu opened this issue 9 years ago • 0 comments

public interface AttemptTimeLimiter<V> {
    V call(Callable<V> callable) throws Exception;
}

can be changed to

public interface AttemptTimeLimiter {
    <V> V call(Callable<V> callable) throws Exception;
}

So that we don't have to specify a generic type when creating the Retryer

james-hu avatar Jul 28 '15 22:07 james-hu