mirror of
https://github.com/tommyskeff/futur4j.git
synced 2026-01-18 07:16:45 +00:00
add awaitInterruptibly methods
This commit is contained in:
@@ -124,6 +124,12 @@ public interface Promise<T> {
|
||||
|
||||
void completeExceptionally(@NotNull Throwable result);
|
||||
|
||||
@Blocking
|
||||
T awaitInterruptibly() throws InterruptedException;
|
||||
|
||||
@Blocking
|
||||
T awaitInterruptibly(long timeout) throws TimeoutException, InterruptedException;
|
||||
|
||||
@Blocking
|
||||
T await();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user