add awaitInterruptibly methods

This commit is contained in:
WhatCats
2024-05-21 14:41:22 +02:00
parent 1269f6ae94
commit daa05d93a0
3 changed files with 26 additions and 12 deletions

View File

@@ -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();