Package io.hekate.util.async
Interface Waiting
-
public interface Waiting
Interface to await for the completion of an asynchronous task.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
await()
Waits for this task to complete.static Waiting
awaitAll(Collection<Waiting> all)
default void
awaitUninterruptedly()
Uninterruptedly waits for this task to complete.
-
-
-
Field Detail
-
NO_WAIT
static final Waiting NO_WAIT
Do not wait.
-
-
Method Detail
-
await
void await() throws InterruptedException
Waits for this task to complete.- Throws:
InterruptedException
- If the current thread was interrupted while waiting.
-
awaitAll
static Waiting awaitAll(Collection<Waiting> all)
-
awaitUninterruptedly
default void awaitUninterruptedly()
Uninterruptedly waits for this task to complete.
-
-