void completeWhenRegistered ( final CompletableFuture < Void > future ) { Preconditions . checkNotNull ( future , "future" ) ; registeredFutureLatch . register ( future ) ; }
This function completes the input future when the channel is registered .