What is the replacement of DefualtChannelFuture in Netty 4

46 Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

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.