public final class Completion
extends java.lang.Object
CompletionStage
.Modifier and Type | Method and Description |
---|---|
static void |
dispose(java.util.concurrent.CompletionStage<?> completionStage)
Logs the exception of the given stage if any.
|
public static void dispose(java.util.concurrent.CompletionStage<?> completionStage)
Does nothing if the stage completes successfully.
Note that the method does not block the thread but logs the exception when the given stage is complete.
completionStage
- stage which may complete exceptionally