Returns a new incomplete CompletableFuture of the type to be
returned by a CompletionStage method. Subclasses should
normally override this method to return an instance of the same
class as this CompletableFuture. The default implementation
returns an instance of class CompletableFuture.
@param <U> the type of the value
@return a new CompletableFuture
Returns a new incomplete CompletableFuture of the type to be returned by a CompletionStage method. Subclasses should normally override this method to return an instance of the same class as this CompletableFuture. The default implementation returns an instance of class CompletableFuture.
@param <U> the type of the value @return a new CompletableFuture