public static < T > boolean isSuccessful ( CompletableFuture < T > f ) { return f . isDone ( ) && ! f . isCompletedExceptionally ( ) && ! f . isCancelled ( ) ; }
Returns true if the future is done and successful .