dispose

public static void dispose(CompletionStage<? extends Object> completionStage)

Logs the exception raised at the given stage, if any.

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.

Parameters

completionStage

stage which may complete with an exception