code: public CompletableFuture<Void> commitAsync() {
          if (this.messagingFactory == null) {
              CompletableFuture<Void> exceptionCompletion = new CompletableFuture<>();
              exceptionCompletion.completeExceptionally(new ServiceBusException(false, "MessagingFactory should not be null"));
              return exceptionCompletion;
          }
  
          return this.messagingFactory.endTransactionAsync(this, true);
      }
docs: Asynchronously commits the transaction
  @return a CompletableFuture for the commit operation