@ Override public Future < Void > destroy ( final Channel channel , final Promise < Void > promise ) { channel . close ( ) . addListener ( new PromiseNotifier <> ( promise ) ) ; return promise ; }
Destroys a channel by closing it .