code: void completeWhenRegistered(final CompletableFuture<Void> future) {
          Preconditions.checkNotNull(future, "future");
          registeredFutureLatch.register(future);
      }
docs: This function completes the input future when the channel is registered.
  
  @param future CompletableFuture which will be completed once the channel is registered.