mirror of
https://github.com/tommyskeff/futur4j.git
synced 2026-01-18 07:16:45 +00:00
change timeout unit format to lowercase
This commit is contained in:
@@ -454,13 +454,13 @@ public abstract class AbstractPromise<T, FS, FA> implements CompletablePromise<T
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull Promise<T> timeout(long time, @NotNull TimeUnit unit) {
|
public @NotNull Promise<T> timeout(long time, @NotNull TimeUnit unit) {
|
||||||
Exception e = new CancellationException("Promise timed out after " + time + " " + unit);
|
Exception e = new CancellationException("Promise timed out after " + time + " " + unit.toString().toLowerCase());
|
||||||
return completeExceptionallyDelayed(e, time, unit);
|
return completeExceptionallyDelayed(e, time, unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull Promise<T> maxWaitTime(long time, @NotNull TimeUnit unit) {
|
public @NotNull Promise<T> maxWaitTime(long time, @NotNull TimeUnit unit) {
|
||||||
Exception e = new TimeoutException("Promise stopped waiting after " + time + " " + unit);
|
Exception e = new TimeoutException("Promise stopped waiting after " + time + " " + unit.toString().toLowerCase());
|
||||||
return completeExceptionallyDelayed(e, time, unit);
|
return completeExceptionallyDelayed(e, time, unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user