mirror of
https://github.com/tommyskeff/futur4j.git
synced 2026-01-18 07:16:45 +00:00
better promise joining and combining
This commit is contained in:
@@ -31,8 +31,11 @@ public interface Promise<T> {
|
||||
|
||||
PromiseFactory getFactory();
|
||||
|
||||
@Deprecated
|
||||
T join(long interval, long timeout) throws TimeoutException;
|
||||
|
||||
T join(long timeout) throws TimeoutException;
|
||||
|
||||
@NotNull Promise<Void> thenRunSync(@NotNull ExceptionalRunnable task);
|
||||
|
||||
@NotNull Promise<Void> thenRunDelayedSync(@NotNull ExceptionalRunnable task, long delay, @NotNull TimeUnit unit);
|
||||
@@ -73,6 +76,8 @@ public interface Promise<T> {
|
||||
|
||||
@NotNull Promise<T> logExceptions();
|
||||
|
||||
@NotNull Promise<T> logExceptions(@NotNull String message);
|
||||
|
||||
@NotNull Promise<T> addListener(@NotNull PromiseListener<T> listener);
|
||||
|
||||
@NotNull Promise<T> timeout(long time, @NotNull TimeUnit unit);
|
||||
|
||||
Reference in New Issue
Block a user