Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Netty 3 中有DefualtChannelFuture类。
它用于创建ChannelFuture. Netty 4 中的替代品是什么?
ChannelFuture
调用Channel.newPromise()或者ChannelHandlerContext.newPromise()如果您需要创建自己的ChannelPromise. AChannelPromise是 的子类型ChannelFuture。
Channel.newPromise()
ChannelHandlerContext.newPromise()
ChannelPromise