public static CompletableFuture<Void> from(ChannelFuture future) {

        LettuceAssert.notNull(future, "ChannelFuture must not be null");

        CompletableFuture<Void> result = new CompletableFuture<>();
        adapt(future, result);

        return result;
    }
public static CompletableFuture < Void > from ( ChannelFuture future ) { LettuceAssert . notNull ( future , "ChannelFuture must not be null" ) ; CompletableFuture < Void > result = new CompletableFuture < > ( ) ; adapt ( future , result ) ; return result ; }
Adapt Netty's {@link ChannelFuture} emitting a {@link Void} result.

@param future the {@link ChannelFuture} to adapt.
@return the {@link CompletableFuture}.