In Netty 3 there is the DefualtChannelFuture class.
It is used to create an instance of ChannelFuture
. What would the replacement be in Netty 4?
Call Channel.newPromise()
or ChannelHandlerContext.newPromise()
if you need to create an own instance of a ChannelPromise
. A ChannelPromise
is a sub-type of ChannelFuture
.