docs: public static void adapt(ChannelFuture future, CompletableFuture<Void> target) {
  
          future.addListener(f -> {
              if (f.isSuccess()) {
                  target.complete(null);
              } else {
                  target.completeExceptionally(f.cause());
              }
          });
  
          if (future.isSuccess()) {
              target.complete(null);
          } else if (future.isCancelled()) {
              target.cancel(false);
          } else if (future.isDone() && !future.isSuccess()) {
              target.completeExceptionally(future.cause());
          }
      }